Slide left animation/transition - HTML CSS CSS Animation

HTML CSS examples for CSS Animation:Slide

Description

Slide left animation/transition

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">

#topmenu_wrap {<!--from   w  w  w  . j  a  v a 2s  .  co m-->
   position:absolute;
}
.links {
   float:left;
   border-left: 1px solid #63b8e6;
   margin-left:48px;
   padding-top: 4px;
   display: block;
}
#topmenu_wrap ul li {
   float:none;
   font-size: 13px;
   text-transform:uppercase;
   display: block;
   border-bottom: 1px solid #63b8e6;
}
#topmenu_wrap ul li a, #topmenu_wrap ul li span {
   color: #234e95;
   line-height: 12px;
   float: none;
   padding: 4px;
   display: block;
}
#topmenu_wrap ul li span {
   color: #555;
}
#topmenu ul li {
   float: none;
   border-top: 1px solid #6b727c;
   border-bottom: 1px solid #575f6a;
   position: relative;
}
#topmenu_wrap ul li a:hover {
   text-decoration:none !important;
}
.menu-1990:hover > .child {
   display:block;
   opacity:1;
   margin-left:60px;
   height:auto;
   -webkit-transition-duration: 2s;
   -moz-transition-duration: 2s;
   -o-transition-duration: 2s;
   transition-duration: 2s;
}
.child {
   transition: 1s;
   margin-left:0px;
   opacity:0;
   height: 0;
   padding-left: 0px;
   display: block;
   width: 200px;
}


      </style> 
 </head> 
 <body> 
  <div id="topmenu_wrap" class="clearfix"> 
   <ul class="links"> 
    <li class="menu-651 first"> <a href="http://java2s.com/" title="Home">Home</a> </li> 
    <li class="menu-1990"> <a href="http://java2s.com/about-us/" title="About Us">About Us</a> </li> 
    <li class="menu-652 last"> <a href="http://java2s.com/course/" title="Courses">Courses</a> </li> 
   </ul> 
   <ul class="links"> 
    <li class="menu-1990"> <a href="http://java2s.com/programs/" title="Programs">Programs</a> 
     <ul class="child"> 
      <li> <a href="http://java2s.com/programs/" title="CCPM">Certificate Program</a> </li> 
      <li> <a href="http://java2s.com/meri" title="CPTPM">Project Management</a> </li> 
     </ul> </li> 
    <li class="menu-651 first"> <a href="http://java2s.com/contact-us" title="Contact Us">Contact Us</a> </li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials