CSS3 list transition: position of bullets - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Position

Description

CSS3 list transition: position of bullets

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
ul {<!--   w  ww.ja v a2  s . c o  m-->
   list-style:none;
   margin:0;
   padding:0;
}

ul li:before {
   content:"\2023";
   opacity:0;
   padding:0 6px 0 11px;
   margin:0;
   transition:opacity 2s;
}

ul li:hover:before {
   opacity:2;
}
</style> 
 </head> 
 <body> 
  <ul> 
   <li>Lor</li> 
   <li>Lor</li> 
   <li>Lore</li> 
   <li>Lorem</li> 
  </ul>  
 </body>
</html>

Related Tutorials