HTML CSS examples for CSS:Animation
Hover to move list of item during animation
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .filter-category {<!-- ww w .j a va 2 s. c om--> position:relative; overflow:hidden; height:21px; } .filter-list { position:absolute; bottom:-61px; background:white; width:201px; margin:0; left:0; } .filter-category:hover { overflow:visible; } .filter-category:hover ul.filter-list { bottom:21px; -webkit-transition:.6s ease; -moz-transition:6s ease; -o-transition:.6s ease; transition:.6s ease; } </style> </head> <body> <p>Move the list to the bottom</p> <p>Move the list to the bottom</p> <p>Move the list to the bottom</p> <p>Move the list to the bottom</p> <p>Move the list to the bottom</p> <p>Move the list to the bottom</p> <ul> <li class="small-2 columns filter-category"> Category 2 </li> <li class="small-2 columns filter-category"> Category 4 </li> <li class="small-2 columns filter-category"> Category <ul class="filter-list"> <li>element one</li> <li>element two</li> <li>element three</li> </ul> </li> <li class="small-2 columns filter-category"> Category 3 </li> </ul> </body> </html>