gpt4 book ai didi

javascript - 鼠标悬停状态

转载 作者:行者123 更新时间:2023-11-28 14:22:19 30 4
gpt4 key购买 nike

A 前段时间我开始了一个元素,该元素涉及将一个页面拼接成两半,两边各有一个链接,滚动时会展开相应的边。

这是例子; http://camoconnell.com/ddu/

自第一次构建以来我发现这是悬停状态和 .stop() 函数,但是我已经尝试了这些,但它没有解决右侧闪烁的问题。

欢迎任何建议,

提前致谢

编辑

试过了没有结果,相应地更新了上面的示例链接

  $('.change').stop(true,true).hover(

function() {
// do something

},function() {
// do something

}
);

最佳答案

.stop( [clearQueue] [, jumpToEnd] )    
clearQueueA Boolean indicating whether to remove queued animation as well.
Defaults to false.

jumpToEndA Boolean indicating whether to complete the current animation immediately. Defaults to false.

尝试使用 with true 作为两个参数

.stop(true,true)

http://api.jquery.com/stop/

编辑你试错了

$('.change').hover(

function() {
$(this).stop(true,true);
//now do something

},function() {
// do something

}
);

关于javascript - 鼠标悬停状态,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8354690/

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