2010-08-15 64 views

回答

1

他们正在使用的宽松政策被称为easeOutBack,它实际上只是归结为:

.animate({ 
    left : (($(document).width() - this.options.BoxStyles.width)/2), 
    top : ($(document).scrollTop() + ($(window).height() - this.Box.outerHeight())/2) 
}, { 
    duration : this.options.moveDuration, 
    easing : 'easeOutBack' 
}); 

Here's their effect packed up in a stand-alone demo to show it a bit better

+0

我很确定它的其中一个缓动函数http://gsgd.co.uk/sandbox/jquery/easing/ – 2010-08-15 15:45:48