jQuery Easing Plugin内容晃动,滑动,缓慢变化效果

宗啸
2023-12-01

具体demo查看:http://gsgd.co.uk/sandbox/jquery/easing/

用法:

Default

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.

Custom

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});

 类似资料: