Flickery鼠标悬停状态

时间:2011-12-02 10:08:59

标签: javascript jquery css jquery-ui html5

回到过去,我开始了一个项目,其中一个页面拼接成一半,两边都有一个链接,滚动时会扩展相应的一面。

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

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

欢迎任何建议,

提前致谢

修改

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

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

    function() {
            // do something

    },function() {
            // do something

    }
);

1 个答案:

答案 0 :(得分:0)

.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.

尝试使用true作为两个args

.stop(true,true)

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

编辑你正在尝试错误

$('.change').hover(

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

    },function() {
            // do something

    }
);