Custom Bouncing Button for Blogger Site
Custom Bouncing Button for Blogger Site
For various purpose we use button in Blogger template Such
as Live Demo, Download, Read More etc. Making an stylish button can bring some
variation in your Blog design and your Blog readers can become loyal by
watching different style. I have already share different Demo and download
button style by using CSS but today In this article I will show you the way of
adding Bouncing Live Demo or Download button in your Blogger posts by using webkit key
frames. We can easily change scrollbar color by using webkit
keyframe which is not possible by using CSS coding directly.
This is pretty cool.
Because Bouncing button will get an extra effect by the magic touch of CSS. In
addition after mouse hover added extra Font Awesome icon. I hope this unique
button you would love. For integrating bouncing button just follow the below
steps-
Step 1 Log in to your
Blogger Account and Go to your Blogger Dashboard
Step 2 Click on
Now click on -> Template -> Edit HTML->
Step 3 Now find the ]]></b:skin> by pressing Ctrl+F (Windows) or CMD+F (Mac)
Step 4 Copy the script from below and Paste it above/before ]]></b:skin>
/* Custom Button by www.bloggerspice.com */
a.rabbi-button{border:none;cursor:pointer;padding:10px 20px;display:inline-block;margin:15px;text-transform:uppercase;letter-spacing:1px;font-weight:700;outline:0;position:relative;border-radius:3px;-webkit-animation: anim 2s ease-in infinite;animation: anim 2s ease-in infinite;transition:all .3s}
a.rabbi-button:after {
content: '';position:absolute;z-index:-1;transition:all .3s;}
a.rabbi-button:before{font-family:Fontawesome;font-style:normal;font-weight:400;font-variant:normal}
a.rabbi-butt{background:#06A3ED;color:#fff!important;overflow:hidden;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden}
a.rabbi-butt:active {background:#06A3ED;top:2px;}
a.rabbi-butt span {display:inline-block;width:100%;height:100%;transition:all 0.3s;backface-visibility:hidden;}
a.rabbi-butt:before{position:absolute;height:100%;width:100%;line-height:2.2;font-size:130%;transition:all .3s}
a.rabbi-butt:active:before {color:#fff;}
a.rabbi-buttlater:hover span {-webkit-transform: translateY(300%);-moz-transform: translateY(300%);-ms-transform: translateY(300%);transform: translateY(300%);}
a.rabbi-buttlater:before {left:0;top:-110%;}
a.rabbi-buttlater:hover:before {top:0;padding-left:40%;text-decoration:none;}
a.rabbi-butticon:before {content: "\f135";}
@-webkit-keyframes anim{5%{-webkit-transform:scale(1.1,.9);transform:scale(1.1,.9)}10%{-webkit-transform:scale(.9,1.1) translateY(-.5rem);transform:scale(.9,1.1) translateY(-.5rem)}15%{-webkit-transform:scale(1);transform:scale(1)}}
@keyframes anim{5%{-webkit-transform:scale(1.1,.9);transform:scale(1.1,.9)}10%{-webkit-transform:scale(.9,1.1) translateY(-.5rem);transform:scale(.9,1.1) translateY(-.5rem)}15%{-webkit-transform:scale(1);transform:scale(1)}}
Customization
- To change the Button color please alter #06A3ED code. You can choose different color by using our Color Picker.
- To change the Font Awesome Icon please alter f135 code. You can select different Font awesome icons from Font Awesome cheat sheet.
Step 5 Now again find the </head> by
pressing Ctrl+F (Windows) or CMD+F (Mac)
Step 6 Copy the script
from below and Paste it above/before </head>
<link href='//netdna.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css' rel='stylesheet'/>
Step 7 hit the Save template button.
How to Make it work?
For using this Custom button
you have to add the code in HTML view while writing a Blog post. Just write a
post and from Post Editor Select HTML mode. Now add the below code-
<a href="www.blggerspice.com" rel="”nofollow”" target="_blank" class="rabbi-button rabbi-butt rabbi-buttlater rabbi-butticon"><span>Live Demo</span></a>
Now simply publish the
post and see the result. You will
see Live Demo button is jumping. It has got an webkit keyframes animation.
Thank you.
2 comments