Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用jQuery Cycle 插件。当我'scrollHorz'用作属性值时fx,幻灯片不是以恒定速度移动,而是以缓动的方式移动(参见演示)。
'scrollHorz'
fx
如何使幻灯片以恒定速度移动?
只需使用
easing: "linear"
你应该没事!例如:
$('#s1').cycle({ fx: 'scrollHorz', easing: 'linear', prev: '#prev1', next: '#next1', timeout: 0 });