In this tutorial we will see how we can add as similar button with a really cool hover effect and four social media icons on Blogger with links to share the current page on Facebook, Twitter, Google+ and Pinterest. However, we can replace these social networks later with any other just by changing the links below.
Demo
Creating A CSS Animated Share Button
Step 1. From your Blogger dashboard > go to Template > click on the Edit HTML button.
Step 2. Click anywhere inside the code area and press the Ctrl + F keys to open the blogger search box. Type or paste the ]]></b:skin> tag and hit Enter to find it. Step 3. Just above ]]></b:skin> add this CSS:
.share_button {
width: 300px;
height: 50px;
margin: 10px auto;
}
.share_button ul {
width: 50%;
height: inherit;
float: left;
list-style: none;
margin: 0 !important;
padding: 0 !important;
}
.share_button ul h1 {
margin-top: 9%;
overflow: hidden;
width: 100%;
color: #4889F0;
font-size: 18px;
text-shadow:2px 2px 2px #fff;
}
.share_button ul li {
position: absolute;
height: inherit;
width: 150px;
margin: 0 !important;
padding: 0 !important;
background: #EEEEEE;
-webkit-transition: all 600ms;
-moz-transition: all 600ms;
-o-transition: all 600ms;
-ms-transition: all 600ms;
transition: all 600ms;
text-align: center;
}
.share_button ul li h2 {
display: inline-block;
width: 32%;
height: 40px;
overflow: hidden;
margin-top: 5%;
cursor: pointer;
border: 0 !important;
}
.share_button ul:first-child li:first-child{
text-align: right;
}
.share_button ul:last-child li:first-child{
text-align: left;
}
.share_button ul:first-child li:last-child,
.share_button:hover ul:first-child li:first-child {
-webkit-transform: rotateY(90deg);
-moz-transform: rotateY(90deg);
-o-transform: rotateY(90deg);
-ms-transform: rotateY(90deg);
transform: rotateY(90deg);
}
.share_button ul:last-child li:last-child,
.share_button:hover ul:last-child li:first-child {
-webkit-transform: rotateY(-90deg);
-moz-transform: rotateY(-90deg);
-o-transform: rotateY(-90deg);
-ms-transform: rotateY(-90deg);
transform: rotateY(-90deg);
}
.share_button:hover ul:first-child li:last-child,
.share_button:hover ul:last-child li:last-child {
-webkit-transform: rotateY(0deg);
-moz-transform: rotateY(0deg);
-o-transform: rotateY(0deg);
-ms-transform: rotateY(0deg);
transform: rotateY(0deg);
}
Step 5. And now let's go ahead and insert the HTML button in the template. The most common place would be just after <div class='post-footer'> - find the second <div class='post-footer'> and paste the following code just above it:
<div class='share_button'>Note: if you want to change the icons, replace the URLs in blue.
<ul>
<li><h1>
Share t
</h1></li>
<li><h2>
<a expr:href='"http://www.facebook.com/sharer.php?u=" + data:post.canonicalUrl + "&t=" + data:post.title ' title='Share on Facebook'><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKnDurZqWNSh1S0_Eb57lLwaTpYAasgDfh1783qQIVnV-I7h8c2OFswJS2PfBXNVI-pJaQYAfh0t_ytP_YxvKHg8qY9-r-jQ2YwM-ob17iX-6hxdVGhmTAQYsORBqQG3wVSL3aJhXq-oXl/s1600/Facebook.png"/></a></h2>
<h2><a expr:href='"http://twitter.com/home?status=" + data:post.title + " " + data:post.canonicalUrl ' title='Share on Twitter'><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEHyQhdaNDQmXtXRyEAhM9i_AF6t-vm1qEE8ARZ5Kmv13KpGba2aSqMV5NqCkRcSDr2To5QuVnkz9lfkD_zXzpnd4si2596yVv5y7xHOgHHYUUPVbmkYRX-549a4llTYQNa63KixQUIuLh/s1600/Twitter.png"/></a></h2>
</li>
</ul>
<ul>
<li><h1>his page</h1></li>
<li>
<h2><a expr:href='"https://plus.google.com/share?url=" + data:post.canonicalUrl ' title='Share on Google Plus'><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipkLoHokNOzPTsH9_ITI96HYzAW2Tfpcog6hBZ7t6UbDnRa1nZAEbbQMeNPEf7HV779aTrJID8x9tY-95EPoPX7LwuEwulxWpzpt5zQGB5_fSBTxiFTs2EmO4GNI6UHSPjhyphenhyphenB0Iat7MtPE/s1600/Google-plus.png"/></a></h2>
<h2>
<a href='javascript:void((function(){var%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','http://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());' title='Share on Pinterest'><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBy3WRrKxbYd_sPKIsBCgZyxVoXhhkyITausw99UaYLV4GqfZtK5gnNevS-ZfSU69Uj0KONzouzQMaYUyQ3OF1MocFb9oL2vUsNH5PxAgW0wB_7lTuCYZy5xU_UQjNjgn6mqSnAWTZymmT/s1600/Pinterest.png"/></a>
</h2>
</li>
</ul>
</div>
Step 5. Click on the Save template button and we're done! Enjoy ;)
How much to sell domain name for Geographical Location of the Visitors Fastest VPS hosting Donate structured settlements annuities Conference Call ANNUITY SETTLEMENT Degree Donate Car to Charity California Classes Transfer small business administration sba NUNAVUT CULTURE Rehab Donate your car for kids Insurance Loans Mortgage Cord Blood AUTO ACCIDENT LAWYER DENVER Credit Software online making money Casino Attomey Recovery Forex Trading structured settlement annuity companies Tourism or Travel Donate your car Sacramento · Better Conferencing Calls Lawyer Hosting Claim Insurance Blogs Treatment Blogging Making Money online · PaperPort Promotional Code Bluehost Trading Online Colleges All topics related to traffic from USA Technology Attormey mesothelioma suit UK Canada Gas/Electricity Nunavut culture Mesothelioma Law Firm domain name yahoo Donate Car for Tax Credit mesothelioma survival rates STRUCTURED ANNUITY SETTLEMENT LOS ANGELES AUTO ACCIDENT ATTORNEY DAYTON FREIGHT LINES CRIMINAL DEFENSE ATTORNEY PALM BEACH mesothelioma attorneys california structured settlement buyer mesothelioma claim Donate cars in ma Blogs Based On Donations
0 comentarios:
Publicar un comentario