Share Button Efek Berputar |
Tombol berbagi yang Ane bagi sekarang cukup keren, ketika pointer mouse diarahkan ke tombol tersebut ia akan memutar 360 derajat.
Berikut adalah cara untuk menambahkan tombol berbagi dengan efek berputar ke blog Blogger Anda:
1. Login ke blogger> Desain> Edit HTML> Expand Widget Templates. Cari kode berikut pada template Anda: (ctrl + f)
<data:post.body/>
2. Tepat di bawahnya tambahkan kode berikut ini:
<b:if cond='data:blog.pageType == "item"'>
<div class='spinning_icons'>
<a class='twitter' expr:data-text='data:post.title' expr:data-url='data:post.url' href='http://twitter.com/share' rel='nofollow' target='_blank' title='Twitter'>Twitter</a>
<a class='delicious' expr:href='"http://del.icio.us/post?url=" + data:post.url + "&title=" + data:post.title' target='_blank' title='Delicious'>Delicious</a>
<a class='digg' expr:href='"http://digg.com/submit?phase=2&url=" + data:post.url + "&title=" + data:post.title' target='_blank' title='Digg'>Digg</a>
<a class='facebook' expr:href='"http://www.facebook.com/sharer.php?u=" + data:post.url + "&title=" + data:post.title' target='_blank' title='Facebook'>Facebook</a>
<a class='stumbleupon' expr:href='"http://www.stumbleupon.com/refer.php?url=" + data:post.url + "&title=" + data:post.title' target='_blank' title='Stumbleupon'>Stumbleupon</a>
<a class='rss' href='http://feeds.feedburner.com/blogcapoenk' target='_blank' title='RSS'>RSS</a>
</div>
</b:if>
3. Ganti http://feeds.feedburner.com/blogcapoenk dengan username feedburner Anda, kemudian cari kode ini:
]]></b:skin>
4. Tepat di atas kode tersebut di atas tambahkan kode di bawah ini:
.spinning_icons a{
width:48px;
height:48px;
display:inline-block;
text-indent:-9999em;
background-position:0 0;
background-repeat:no-repeat;
z-index:2000;
overflow:hidden;
}
.twitter{ background:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyNJQ1zDm2qvUbE5eUAaEvOXPpXEvW2TB9WWkoM10hthxbbWjAcqUdhX8pVyUeaFvub9u9-ZxtXFqFsAoKwmGk-0BVhu-mjD5lVlMgzdgP_bh2A9M-FD2fGPMyE-GOg4xJQMapFiXUrVo/s1600/twitter_32.png'); }
.delicious{ background:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3QsILQ9a-QwPaPfy12VGKxJbQmQYrjxs6ugF4KKFoKEdi0AVFJqDaQt7AxPtjqwgb_mzGCGPMk5uDavgnvkbqu5rcuP1CQoxnx-jIcS3iJDqYPPG9L3A376kaye1BrmiWEMte-vtbEQY/s1600/delicious_32.png'); }
.digg{ background:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-i3VHp3UKrKCsQyjhTdckYlPP-BImGLtZ1VmJemZebmXc7gtkMw6nOGw9MtcIrE5GH60PpAh1kOOWfEtWSpZxdvNVD_UQ7LyJqw9l6hkfi_VBIX94gXnr1_TIgzZGg-GCCcEhyphenhyphenCGz41g/s1600/digg_32.png'); }
.facebook{ background:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiT1hEP0T8nndVylWysASuCDXfMhhCFyMrzuVDWRZkLL5mo8y3ucV8wV-kViJ_JDPEXm4dvOPdxtMTYIZV3txru1wdDGZad9WieSlf3lRzkN1sksBa_90zowxwNz3MUMJswzqdNlxJJh_Q/s1600/facebook_32.png'); }
.rss{ background:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDptQCUof33S2BSzBv99F7rRza4HSAztb6L4c5MpBZUH00dgqPIT43vpVQDmTwE3dkAYkBjkwyjrm71WtjsYwT0neSyQlP449Bnz9P1SQzzLvaRlhc2x4EJxFp2e140JRMmUv5yrzPizA/s1600/rss_32.png'); }
.stumbleupon{ background:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgL1_uosdtqtXcFL0wHMYSyyf4eqQAb6uHTnOtb1MB7B2Lm4ExVFidaiM0DCFvuSItInrQuZyC9tPpdg-Hj7eFhmEfp8TfW-8mG5bsMHutqS19mNmTcQ92y5bdE554pSfqicE6Biv9-x50/s1600/stumbleupon_32.png'); }
.spinning_icons a:hover{
transform: rotate(360deg);
-webkit-transform: rotate(360deg);
-moz-transform: rotate(360deg);
transition: transform 0.2s ease-out;
-webkit-transition: -webkit-transform 0.2s ease-out;
-moz-transition: -moz-transform 0.2s ease-out;
}
0 komentar:
Post a Comment