Hover not working with jQuery Tools - jQuery

2020-04-17 07:56发布

When I add jQuery Tools to my page, hover effect on links doesn't work. Without it, it works.

<script src="jquery.js"></script>
<script src="jquery.color.js"></script>
<script src="http://cdn.jquerytools.org/1.2.5/jquery.tools.min.js"></script>
<script>
$(function() {
$("a").hover(
function() {
    $(this).animate({color: "white"}, 400);
}, function() {
    $(this).animate({color: "black"}, 400);
});
});
</script>

1条回答
唯我独甜
2楼-- · 2020-04-17 08:06

If you switch the color plugin and the tools <script> tags the animation works

http://jsfiddle.net/pxfunc/gJjAZ/

Question will be: does that make the tooltip not work? :)

查看更多
登录 后发表回答