<! DOCTYPE html>
<meta charset= "Utf-8"/>
<TITLE>CSS3 Smooth transition transition</title>
<meta name= "description" content= ""/>
<meta name= "keywords" content= ""/>
<script src= "Js/jquery-1.10.2.js" ></script>
<style>
#timings-demo {
border:1px solid #ccc;
padding:10px;
height:400px;
width:400px;
}
. demo-box {
width:100px;
height:50px;
Text-align:center;
line-height:50px;
Text-align:center;
Color: #fff;
Background: #96c;
-moz-border-radius:5px;
-webkit-border-radius:5px;
border-radius:5px;
-moz-box-shadow:inset 0 0 5px Rgba (102, 153, 0,0.5);
-webkit-box-shadow:inset 0 0 5px Rgba (102, 153, 0,0.5);
Box-shadow:inset 0 0 5px Rgba (102, 153, 0,0.5);
margin-bottom:10px;
}
#ease {
-moz-transition:all 5s ease 0.3s;
-webkit-transition:all 5s ease 0.3s;
-o-transition:all 5s ease 0.3s;
Transition:all 5s ease 0.3s;
Background: #f36;
}
#ease-in{
-moz-transition:all 3s ease-in 0.5s;
-webkit-transition:all 3s ease-in 0.5s;
-o-transition:all 3s ease-in 0.5s;
Transition:all 3s ease-in 0.5s;
Background: #369;
}
#ease-out{
-moz-transition:all 5s ease-out 0s;
-webkit-transition:all 5s ease-out 0s;
-o-transition:all 5s ease-out 0s;
Transition:all 5s ease-out 0s;
Banckground: #636;
}
#ease-in-out{
-moz-transition:all 1s ease-in-out 2s;
-webkit-transition:all 1s ease-in-out 2s;
-o-transition:all 1s ease-in-out 2s;
transition:all 1s ease-in-out 2s;
Background: #3e6;
}
#linear {
-moz-transition:all 6s linear 0s;
-webkit-transition:all 6s linear 0s;
-o-transition:all 6s linear 0s;
transition:all 6s linear 0s;
Background: #999;
}
#cubic-bezier{
-moz-transition:all 4s cubic-bezier 1s;
-webkit-transition:all 4s cubic-bezier 1s;
-o-transition:all 4s cubic-bezier 1s;
transition:all 4s cubic-bezier 1s;
Background: #6d6;
}
. Timings-demo-hover, #timings-demo:hover. demo-box{
-moz-transform:rotate (360DEG) scale (1.2);
-webkit-transform:rotate (360DEG) scale (1.2);
-moz-transform:rotate (360DEG) scale (1.2);
Transform:rotate (360DEG) scale (1.2);
Background: #369;
border:1px solid Rgba (255,230,255,08);
-moz-border-radius:25px;
-webkit-border-radius:25px;
border-radius:25px;
margin-left:280px;
height:30px;
line-height:30px;
margin-bottom:15px;
}
</style>
<body>
<a id= "Timings-demo-btn" >click</a>
<div id= "Timings-demo" >
<div id= "Ease" class= "Demo-box" >Ease</div>
<div id= "ease-in" class= "Demo-box" >Ease-in</div>
<div id= "Ease-out" class= "Demo-box" >Ease-out</div>
<div id= "Ease-in-out" class= "Demo-box" >Ease-in-out</div>
<div id= "linear" class= "Demo-box" >Linear</div>
<div id= "Cubic-bezier" class= "Demo-box" >Cubic-bezier</div>
</div>
</body>
CSS3 Smooth transition Transition