开发者

Jquery delay problem

开发者 https://www.devze.com 2022-12-27 16:47 出处:网络
Why this delay of Jquery animation does not work as it should be? $(\" .inner\").stop().delay(1000).animate({height:\'142px\'},开发者_C百科{queue:false, duration:600});

Why this delay of Jquery animation does not work as it should be?

$(" .inner").stop().delay(1000).animate({height:'142px'},开发者_C百科{queue:false, duration:600});

Is there any other way to delay this animation?


I think its because you've got

queue:false

which means its not using the default fx queue which delay() acts on by default. Try taking out queue: false

The documentation for delay(duration, [ queueName ] ) says

queueNameA string containing the name of the queue. Defaults to fx, the standard effects queue.

The documentation for animate(properties, options ) says

queue: A Boolean indicating whether to place the animation in the effects queue. If false, the animation will begin immediately.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号