CSS
ul.nudging {
margin:10px 10px;
padding:0px 0px;
font:normal 16px Sans-Serif;
}
ul.nudging li {
list-style:none;
margin:0px 0px;
padding:0px 0px;
}
ul.nudging li a {
text-decoration:none;
display:block;
overflow:hidden;
padding:5px 10px;
color:white;
background-image:-webkit-linear-gradient(left,transparent,transparent 30%,rgba(255,255,255,0.4));
background-image:-moz-linear-gradient(left,transparent,transparent 30%,rgba(255,255,255,0.4));
background-image:-ms-linear-gradient(left,transparent,transparent 30%,rgba(255,255,255,0.4));
background-image:-o-linear-gradient(left,transparent,transparent 30%,rgba(255,255,255,0.4));
background-image:linear-gradient(left,transparent,transparent 30%,rgba(255,255,255,0.4));
-webkit-background-size:200% 100%;
-moz-background-size:200% 100%;
background-size:200% 100%;
-webkit-transition:all 0.26s ease-out;
-moz-transition:all 0.26s ease-out;
-ms-transition:all 0.26s ease-out;
-o-transition:all 0.26s ease-out;
transition:all 0.26s ease-out;
}
.nudging li a:hover {
background-position:100% 100%;
padding-left:15px;
}
HTML
<ul class="nudging">
<li><a href="#">Lorem</a></li>
<li><a href="#">Ipsum</a></li>
<li><a href="#">Dolor</a></li>
<li><a href="#">Sit Amet-Amet</a></li>
<li><a href="#">Jabang Bayi</a></li>
<li><a href="#">Oek-Oek</a></li>
</ul>
Lihat Demo
Labels: CSS, Potongan
3 Comments:
Sipp dh, alhamdulillah saya dpt jg nih artikel ..
wktu itu smpat di save taruh di FD eh mlah kgk ada.
mirip CSS-Tricks euy :D
By Andy Nur, at Thursday, February 9, 2012 at 11:06:00 PM GMT+7
@Andy Cyber Crash: Setahu Saya cukup banyak artikel seperti ini :)
By Taufik Nurrohman, at Monday, February 13, 2012 at 10:22:00 AM GMT+7
Wah baru nemu di sini, pedahal udah lama di cari, ini inspirasinya dari 24way yach mas..??
By Unknown, at Monday, April 30, 2012 at 12:57:00 AM GMT+7
Post a Comment
<< Home