javascript – Jquery动画缓动
作者:互联网
快速提问:如何在没有任何缓动参数的情况下调用jQuery的animate()?例如没有任何影响.
干杯!
解决方法:
写
$('#elem').animate({
top: '0px',
left: '0px'
}, 5000, 'linear');
摘自jQuery API:
The only easing implementations in the jQuery library are the default,
calledswing
, and one that progresses at a constant pace, called
linear
.
标签:javascript,jquery,jquery-animate 来源: https://codeday.me/bug/20190726/1541322.html