Here’s another cool variation of the social sharing button design, which is an animated button from Sonu of LatestHack. The buttons are circular in shape with a slight fold on the top right (i.e. earmarked). It spins on mouse over and then spins in reverse on mouse out.
The spinning animation is accomplished using CSS, with 3 spinning variations you can choose from: 70 degrees clockwise, 360 degrees clockwise, and 360 degrees counterclockwise.
To use, simply follow the instructions below:
p#socialicons img {
-moz-transition: all 0.2s ease-in-out;
-webkit-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
-ms-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
p#socialicons img:hover {
-moz-transform: rotate(70deg);
-webkit-transform: rotate(70deg);
-o-transform: rotate(70deg);
-ms-transform: rotate(70deg);
transform: rotate(70deg);
}
p#socialicons1 img {
-moz-transition: all 0.8s ease-in-out;
-webkit-transition: all 0.8s ease-in-out;
-o-transition: all 0.8s ease-in-out;
-ms-transition: all 0.8s ease-in-out;
transition: all 0.8s ease-in-out;
}
p#socialicons1 img:hover {
-moz-transform: rotate(360deg);
-webkit-transform: rotate(360deg);
-o-transform: rotate(360deg);
-ms-transform: rotate(360deg);
transform: rotate(360deg);
}
p#socialicons2 img {
-moz-transition: all 0.5s ease-in-out;
-webkit-transition: all 0.5s ease-in-out;
-o-transition: all 0.5s ease-in-out;
-ms-transition: all 0.5s ease-in-out;
transition: all 0.5s ease-in-out;
}
p#socialicons2 img:hover {
-moz-transform: rotate(-360deg);
-webkit-transform: rotate(-360deg);
-o-transform: rotate(-360deg);
-ms-transform: rotate(-360deg);
transform: rotate(-360deg);
}
</style>
<center>
<p id=”socialicons”>
<a href=”http://www.facebook.com/FB_NAME” target=”_blank”><img border=”0″ src=”https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlv5SuDaCkSaj8mUtPAktizUacWxu9D-M2rtmLakdxBt7S8eePo8g8HPfeVXF22vWuRLAZaRyTZYIopwE9htXIzxdrf9SkTv2N5gwMZKWPaWjFUGKJaIOP_mt28ThhHaKJDQSmhTaEl0M/s1600/latesthack.com-facebook.png” /></a>
<a href=”http://www.twitter.com/TWITTER_NAME/” target=”_blank”><img border=”0″ src=”https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2BFZclKQsY9BOaIs5xtUS81hxZvStVgrAWZP_K3ZxNF90wx7mHKHXTtCu671DXjcBJ1q9Jiu2qvw8zKwS4J7qExhEmLzDL_4aIxqMFbNeHglUob3naRPO98Y_XkfZP6EZRTEJNd0mBcU/s1600/latesthack.com-twitter.png” /></a>
</p>
<p id=”socialicons”>
<a href=”https://plus.google.com/u/0/123456789012345678901” target=”_blank”><img border=”0″ src=”https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQ8DUX9EvHLZBnwqUp-LX8Za-llhsMc8TQ2nBaJ3leCrzveoq9p2_q9SNXz5vXBrhSyBrwAfVFNv9Nc3g3ro74N4P8aPW4aAHLPusoHUCXh-Fzg6-q1UlWJJLGaLU54m5AcdH2pCdAz5c/s1600/latesthack.com-google_plus.png” /></a>
<a href=”http://feeds.feedburner.com/FEEDBURNER_NAME/” target=”_blank”><img border=”0″ src=”https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpi8dZ6l94iBfHTpOq-nVGdhGINiCg1zcG6Z8UvYIACrSdQVDZz81_vihTH-W-xzYXN5yQVAkqsdIVmNoqEAcs_SNu5fHlICjh2zKVbHPfEHCmjibnQjyVyfONc1MY9tJlP8Mj73aOPN0/s1600/latesthack.com-rss.png” /></a>
</p>
</center>
<p style=”display:none;”>Spinning icons by <a href=”http://www.latesthack.com”>Latest Hack</a></p>
To use, simply follow the instructions below:
- In you Blogger dashboard, go to “Layout” and then click on the “Add a Gadget” button where you’d like to place the social sharing buttons
- Choose HTML/JavaScript in the list of gadgets
- Copy/paste the code below in the content box (giving a name for the gadget is optional):
p#socialicons img {
-moz-transition: all 0.2s ease-in-out;
-webkit-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
-ms-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
p#socialicons img:hover {
-moz-transform: rotate(70deg);
-webkit-transform: rotate(70deg);
-o-transform: rotate(70deg);
-ms-transform: rotate(70deg);
transform: rotate(70deg);
}
p#socialicons1 img {
-moz-transition: all 0.8s ease-in-out;
-webkit-transition: all 0.8s ease-in-out;
-o-transition: all 0.8s ease-in-out;
-ms-transition: all 0.8s ease-in-out;
transition: all 0.8s ease-in-out;
}
p#socialicons1 img:hover {
-moz-transform: rotate(360deg);
-webkit-transform: rotate(360deg);
-o-transform: rotate(360deg);
-ms-transform: rotate(360deg);
transform: rotate(360deg);
}
p#socialicons2 img {
-moz-transition: all 0.5s ease-in-out;
-webkit-transition: all 0.5s ease-in-out;
-o-transition: all 0.5s ease-in-out;
-ms-transition: all 0.5s ease-in-out;
transition: all 0.5s ease-in-out;
}
p#socialicons2 img:hover {
-moz-transform: rotate(-360deg);
-webkit-transform: rotate(-360deg);
-o-transform: rotate(-360deg);
-ms-transform: rotate(-360deg);
transform: rotate(-360deg);
}
</style>
<center>
<p id=”socialicons”>
<a href=”http://www.facebook.com/FB_NAME” target=”_blank”><img border=”0″ src=”https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlv5SuDaCkSaj8mUtPAktizUacWxu9D-M2rtmLakdxBt7S8eePo8g8HPfeVXF22vWuRLAZaRyTZYIopwE9htXIzxdrf9SkTv2N5gwMZKWPaWjFUGKJaIOP_mt28ThhHaKJDQSmhTaEl0M/s1600/latesthack.com-facebook.png” /></a>
<a href=”http://www.twitter.com/TWITTER_NAME/” target=”_blank”><img border=”0″ src=”https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2BFZclKQsY9BOaIs5xtUS81hxZvStVgrAWZP_K3ZxNF90wx7mHKHXTtCu671DXjcBJ1q9Jiu2qvw8zKwS4J7qExhEmLzDL_4aIxqMFbNeHglUob3naRPO98Y_XkfZP6EZRTEJNd0mBcU/s1600/latesthack.com-twitter.png” /></a>
</p>
<p id=”socialicons”>
<a href=”https://plus.google.com/u/0/123456789012345678901” target=”_blank”><img border=”0″ src=”https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQ8DUX9EvHLZBnwqUp-LX8Za-llhsMc8TQ2nBaJ3leCrzveoq9p2_q9SNXz5vXBrhSyBrwAfVFNv9Nc3g3ro74N4P8aPW4aAHLPusoHUCXh-Fzg6-q1UlWJJLGaLU54m5AcdH2pCdAz5c/s1600/latesthack.com-google_plus.png” /></a>
<a href=”http://feeds.feedburner.com/FEEDBURNER_NAME/” target=”_blank”><img border=”0″ src=”https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpi8dZ6l94iBfHTpOq-nVGdhGINiCg1zcG6Z8UvYIACrSdQVDZz81_vihTH-W-xzYXN5yQVAkqsdIVmNoqEAcs_SNu5fHlICjh2zKVbHPfEHCmjibnQjyVyfONc1MY9tJlP8Mj73aOPN0/s1600/latesthack.com-rss.png” /></a>
</p>
</center>
<p style=”display:none;”>Spinning icons by <a href=”http://www.latesthack.com”>Latest Hack</a></p>
- Replace all the necessary username values (facebook, twitter, google plus, and feedburner) with that of your own
- To make the buttons spin 360 degress clockwise, change id=”socialicons” to id=”socialicons1″
- To make the buttons spin 360 degress clockwise, change id=”socialicons” to id=”socialicons2″
- To make all four buttons to appear in one horizontal line instead, simply delete the highlighted </p><p id=”socialicons”> tags above.
- Save the gadget and there you have it, your own spinning social sharing buttons!
0 comments:
Post a Comment