HTML CSS examples for CSS Animation:Hover
Div animated when hover
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #test {<!--from ww w.j a v a 2 s . c o m--> width:300px; height:100px; background:blue; } #teste { width:300px; height:100px; background:red; -webkit-transition: all 1s linear; -moz-transition: all 1s linear; -ms-transition: all 1s linear; -o-transition: all 1s linear; transition: all 1s linear; opacity: 0; } #test:hover #teste { opacity: 1; } </style> </head> <body> <div id="test"> <div id="teste" class="teste"></div> </div> </body> </html>