-->

Add A CSS Animated Share Button on Blogger

Responsive Ad Heref
Add A CSS Animated Share Button on Blogger - Hi Guys Learn Seo Tips And Trick to get more Traffic, On this article you read this time with the title Add A CSS Animated Share Button on Blogger, We have prepared this article well for you to read and take the information in it. Hopefully the contents of the article about Artikel Blog Design, Artikel social media, Artikel Widgets, Which we write you can understand. Okay, happy reading.

Title : Add A CSS Animated Share Button on Blogger
link : Add A CSS Animated Share Button on Blogger

Also Read These


Add A CSS Animated Share Button on Blogger

I saw this on Paulund, a highly recommended site with a good collection of snippets, i.e. a collection of different codes that develop small utilities, all of these being applicable to web design.

In this tutorial, we will see how we can add a similar share button on Blogger with a really cool hover effect and 4 social media icons 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. 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'>

<ul>
<li><h1>
Share t
</h1></li>

<li><h2>
<a expr:href='&quot;http://www.facebook.com/sharer.php?u=&quot; + data:post.canonicalUrl + &quot;&amp;t=&quot; + data:post.title ' title='Share on Facebook'><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVaj4cgWf-HAiLOHvs2gBTnpa8hO0eyTAMFBJrzyMYZ3Nov6sw8UjWvXwQjlBeErz7eQ56gAeMLKLK9ncwbmYcMnWYpbBPdtuht6YvUschjPyifxiU2Z-0eVxmZgRbSzdHkQo_NtdFBXve/s1600/Facebook.png"/></a></h2>

<h2><a expr:href='&quot;http://twitter.com/home?status=&quot; + data:post.title + &quot; &quot; + data:post.canonicalUrl ' title='Share on Twitter'><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoLl45Gfi_SkSQfL9umKTQBn4748WfHrqRYBLLuMhJJLhWFJ7jhEItxvuvL-CnBy1ern4w-PpFvB0QLQkgl_YCv50A4WlU7_tDKX5fuRwhyphenhyphenfML4X-Z2UqmOfc01bPLB9124qyq7o1A45R5/s1600/Twitter.png"/></a></h2>
</li>
</ul>
<ul>
<li><h1>his page</h1></li>

<li>
<h2><a expr:href='&quot;https://plus.google.com/share?url=&quot; + data:post.canonicalUrl ' title='Share on Google Plus'><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHl3lNBtpOVFDkjM2F6w7-wdLXBVQS2n58EWvluueAt4tmTrjAUwlkRvu1lTlQoIljJVs15nb8JzcXQ6T5Dg4780Alq4r891swzYV1RbVVhEIVobIkaHsl3PpIHfsZaxah95w0uIiDL6LR/s1600/Google-plus.png"/></a></h2>

<h2>
<a href='javascript:void((function(){var%20e=document.createElement(&apos;script&apos;);e.setAttribute(&apos;type&apos;,&apos;text/javascript&apos;);e.setAttribute(&apos;charset&apos;,&apos;UTF-8&apos;);e.setAttribute(&apos;src&apos;,&apos;http://assets.pinterest.com/js/pinmarklet.js?r=&apos;+Math.random()*99999999);document.body.appendChild(e)})());' title='Share on Pinterest'><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvgZQagBez9u4M9Q0cpClUrjxmrXA_Yj7Sb1LIQa_DGDXOSkw55uatujl7MytampSIhbXYIqEepX7QUffySdAMWBDhut6dEsMMzAA8cyzALDZhEJBEvqmUfZ1t81hmdqn2LXeEgylT9tgc/s1600/Pinterest.png"/></a>
</h2>
</li>
</ul>

</div>
Note: if you want to change the icons, replace the URLs in blue.

Step 5. Click on the "Save template" button and we're done! Enjoy ;)


Thats it guys about Add A CSS Animated Share Button on Blogger

That's an article Add A CSS Animated Share Button on Blogger This time, hopefully can benefit for you all. Well, see you in other article postings.

You are now reading the article Add A CSS Animated Share Button on Blogger With link address https://learntogether-seo.blogspot.com/2014/02/add-css-animated-share-button-on-blogger.html
Responsive Ad Here

Author:

velit viverra minim sed metus egestas sapien consectetuer, ac etiam bibendum cras posuere pede placerat, velit neque felis. Turpis ut mollis, elit et vestibulum mattis integer aenean nulla, in vitae id augue vitae.