使用说明¶
直接使用就行,默认会把平滑函数混入到 jQuery 中。
$('#demo').animate({
width: 'toggle',
height: 'toggle'
}, {
duration: 5000,
specialEasing: {
width: 'linear',
height: 'elasticBoth'
},
complete: function() {
$(this).after('<div>Animation complete.</div>');
}
});
平滑函数曲线图¶