Create 3D Rolling Link Effect Using CSS in Blogger
First and foremost log in to your Blogger Account >> Select your Blog >> Template >> click Edit HTML >> click inside the code area and use Ctrl+F to search and search for the following tag]]></b:skin>
Now copy the below code and paste it just above/before it (]]></b:skin> tag)
.bgt-roll-link {
color: #2aa4cf;
text-decoration: none;
font-weight:bold;
display: inline-block;
overflow: hidden;
vertical-align: top;
-webkit-perspective: 600px;
-moz-perspective: 600px;
-ms-perspective: 600px;
perspective: 600px;
-webkit-perspective-origin: 50% 50%;
-moz-perspective-origin: 50% 50%;
-ms-perspective-origin: 50% 50%;
perspective-origin: 50% 50%;
}
.bgt-roll-link:hover {text-decoration:none; color: #2aa4cf; font-weight:bold;}
.bgt-roll-link span {
display: block;
position: relative;
padding: 0 2px;
-webkit-transition: all 300ms ease;
-moz-transition: all 300ms ease;
-ms-transition: all 300ms ease;
transition: all 300ms ease;
-webkit-transform-origin: 50% 0%;
-moz-transform-origin: 50% 0%;
-ms-transform-origin: 50% 0%;
transform-origin: 50% 0%;
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
-ms-transform-style: preserve-3d;
transform-style: preserve-3d;
}
.bgt-roll-link:hover span {
background: #2aa4cf;
-webkit-transform: translate3d( 0px, 0px, -30px ) rotateX( 90deg );
-moz-transform: translate3d( 0px, 0px, -30px ) rotateX( 90deg );
-ms-transform: translate3d( 0px, 0px, -30px ) rotateX( 90deg );
transform: translate3d( 0px, 0px, -30px ) rotateX( 90deg );
}
.bgt-roll-link span:after {
content: attr(data-title);
display: block;
position: absolute;
left: 0;
top: 0;
padding: 0 2px;
color: #fff;
background: #2aa4cf;
-webkit-transform-origin: 50% 0%;
-moz-transform-origin: 50% 0%;
-ms-transform-origin: 50% 0%;
transform-origin: 50% 0%;
-webkit-transform: translate3d( 0px, 105%, 0px ) rotateX( -90deg );
-moz-transform: translate3d( 0px, 105%, 0px ) rotateX( -90deg );
-ms-transform: translate3d( 0px, 105%, 0px ) rotateX( -90deg );
transform: translate3d( 0px, 105%, 0px ) rotateX( -90deg );
a.roll-link:link, a.roll-link:visited{color:red;}
}
Hit the Save Template button. Now the HTML, copy the HTML code below and paste it where you want to use this effect.
<a class="bgt-roll-link" href="http://bloggerdaddy.tk"><span data-title=" Bloggerdaddy - A Guide for New Blogger"> Bloggerdaddy - A Guide for New Blogger</span></a>
Customization:
- Replace Bloggerdaddy - A Guide for New Blogger and Bloggerdaddy - A Guide for New Blogger with your Link text.
- Replace http://bloggerdaddy.tk with your Link.
To use this link effect in your blogger blog posts, switch your post editor to HTML mode and add the above HTML code where you want to use it.
Congratulations: You've successfully added this 3D Rolling Link Effect to your blog.
Post a Comment
Click to see the code!
To insert emoticon you must added at least one space before the code.