如何在jQuery插件jQuery.ScrollTo中使用缓动?

website仅提及宽松选项:

# easing: Name of the easing equation.

但是没有例子.

如何使用此功能?

例子在这里: http://demos.flesler.com/jquery/scrollTo/

像这样使用:

$.scrollTo( '#options-examples', 800, {easing:'easeOutQuad'} );

虽然这些缓和功能并没有建立起来.您可以使用jQuery Easing plugin.然后提供以下缓动功能:

jswing> easeInQuad> easeOutQuad> easeInOutQuad> easeInCubic> easeOutCubic> easeInOutCubic> easeInQuart> easeOutQuart> easeInOutQuart> easeInQuint> easeOutQuint> easeInOutQuint> easeInSine> easeOutSine> easeInOutSine> easeInExpo> easeOutExpo> easeInOutExpo> easeInCirc> easeOutCirc> easeInOutCirc> easeInElastic> easeOutElastic> easeInOutElastic> easeInBack> easeOutBack> easeInOutBack> easeInBounce> easeOutBounce> easeInOutBounce

相关文章
相关标签/搜索