gpt4 book ai didi

javascript - jQuery脉动代码与滚动图像jQuery代码冲突

转载 作者:行者123 更新时间:2023-11-28 14:16:06 25 4
gpt4 key购买 nike

这是网站:http://test.designpro.digingage.com/

在我添加脉动图像之前,中间的滚动图像起作用了。这是我的脉动图像代码:

$(document).ready(function() {
function pulsate() {
$(".phone").animate({ opacity: 0.2 }, 1200, 'linear')
.animate({ opacity: 1 }, 1200, 'linear', pulsate)
.click(function() {
$(this).animate({ opacity: 1 }, 1200, 'linear');
$(this).stop();
});
}

pulsate();
});

我不确定这与哪个 .js 文件冲突...是否有我可以使用的 noConflict 代码,以便这两个元素都能正常工作?

最佳答案

从设计的 Angular 来看,我建议根本不要有那种脉动。但它到底是什么时候坏的,如果你在那里取出代码, slider 会再次开始工作吗?

此外,更改脉动图像的类,因为它也在脉动电话号码表单字段。除非那是你想要发生的事情。

关于javascript - jQuery脉动代码与滚动图像jQuery代码冲突,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9028544/

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