Velocity.js - 4
Velocity.js jQuery animasyon akışını geliştirmek için yeni özellikler eklenmiş ve belirgin ölçülerde yüksek performans almamızı sağlayan bir animasyon iyileştirici plugindir.
by Ozgur Ozer
HTML
<script src="http://julian.com/research/velocity/build/jquery.velocity.min.js"></script>
<div class="box" id="jQuery"><span>jQuery</span></div>
<div class="box" id="velocity"><span>velocity</span></div>
CSS
html,body{width:100%;height:100%;}
body{overflow:hidden;margin-left:25%;}
.box{position:relative;display:block;width:50%;height:20%;border:1px solid #000;background-color:#f0f0f0;}
.box span{position:relative;display:block;text-align:center;top:50%;margin-top:-10px;line-height:20px;font:16px Verdana;font-weight:bold;}
#jQuery{top:25%;}
#velocity{top:35%;}
JavaScript
$jQuery=$("#jQuery");
$velocity=$("#velocity");
$jQuery
.delay(2500)
.animate({opacity:0});
$velocity
.velocity({opacity:0},{delay:2500});