gpt4 book ai didi

javascript - 让 jQuery 动画函数无限循环?

转载 作者:行者123 更新时间:2023-11-30 13:10:31 25 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
How do I loop this animation indefinitely?

谁能告诉我如何让这个脚本重复或循环(就像不结束动画功能并永远继续它一样)。

我是 javascript 的新手,所以如果有人能够告诉我我可以做些什么来实现这一点,我将不胜感激。

谢谢。

$(document).ready(function() {
var rageImg = $('.foo');
$(rageImg).animate({top:'+=100px'}, 1000).animate({top:'-=100px'}, 1000);
});

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com