Advertisement
salmancreation

Transition Timing Function Options

Dec 8th, 2014
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.07 KB | None | 0 0
  1. <style type="text/css"> .stable { position: relative; height: 320px; } .stable .balloon { position: absolute; bottom: 0; width: 100px; height: 163px; background: url(/images/balloon.png) no-repeat; } .stable:hover .balloon { bottom: 157px; transition-duration: 3s; } .stable .balloon.default { left: 39px; background-image: url(/images/balloon-blue.png); } .stable .balloon.linear { left: 149px; transition-timing-function: linear; } .stable .balloon.ease-in { left: 259px; transition-timing-function: ease-in; } .stable .balloon.ease-out { left: 369px; transition-timing-function: ease-out; } .stable .balloon.ease-in-out { left: 479px; transition-timing-function: ease-in-out; } .stable .balloon.cubic-bezier { left: 589px; transition-timing-function: cubic-bezier(0,1,1,0); } </style> <div class="stable"> <div class="balloon default">default</div> <div class="balloon linear">linear</div> <div class="balloon ease-in">ease-in</div> <div class="balloon ease-out">ease-out</div> <div class="balloon ease-in-out">ease-in-out</div> <div class="balloon cubic-bezier">cubic-bezier</div> </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement