具体demo查看:http://gsgd.co.uk/sandbox/jquery/easing/
用法:
Choose a default easing method to overwrite the standard 'swing' animation. The easing default is 'easeOutQuad', specify your own using the following:
jQuery.easing.def = "string";
Where string is one of the equation names. The old swing function is renamed to jswing.
There are two ways to specify a custom easing method, the following are functionally identical:
$(element).slideUp(1000, method, callback});$(element).slideUp({duration: 1000, easing: method, complete: callback});