Wednesday 28 December 2011

Transition method

Example: Transition method

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>transition</title>
<style type="text/css">
      
   textarea { 
   -moz-resize: vertical; 
   -webkit-resize: vertical; 
   resize: vertical; 
}  
  
    
     ul a { 
       -webkit-transition: padding .5s; 
       -moz-transition: padding .5s; 
       -o-transition: padding .5s; 
       transition: padding .5s; 
      }
     
    a:hover { 
       padding-left: 6px; 
    }     
       
</style>
</head>

<body>

<center>
<h3> Transition</h3>
      <ul> 
       <li> 
          <a href="#"> One Over Me </a>       </li> 
       <li> 
          <a href="#"> Two Over Me </a>       </li> 
       <li> 
          <a href="#"> Three Over Me </a>       </li> 
       <li> 
          <a href="#"> Four Over Me </a>       </li> 
        <li> 
          <a href="#"> Five Over Me </a>       </li> 


    </ul> 
    </center>
</body>
</html>

No comments:

Post a Comment