HTML CSS examples for CSS:Animation
Hover to change element background by slide effect with animation
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> ul {<!-- w w w.jav a 2 s .c o m--> list-style-type:none; } ul li a { text-decoration:none; } .skillsDouble { float:left; margin-right:2px; } .skillsDouble li { width:100px; height:51px; text-align:center; line-height:51px; float:left; background-image:url('http://www.java2s.com/style/demo/Google-Chrome.png'); background-position:0 0; margin-left:11px; transition:all 3s ease; } .skillsDouble li:hover { background-position:100% 0; } .skillsDouble li a { color:Chartreuse; } </style> </head> <body> <div class="skillsDouble"> <ul> <li> <a href="#">Automation</a> </li> <li> <a href="#">TDD</a> </li> </ul> </div> </body> </html>