0
我想在mouseOut时将鼠标悬停并放回到之前的位置时移动图像。这个脚本可以正常工作,但是如果我将鼠标移动几次,它就会不断上升和下降。我该如何解决它?Jquery悬停重复
$(document).ready(function() {
$(".HomeClaimWrapper .img").hover(function() {
$(".HomeClaimWrapper .img").animate({
top: "-15px"
}, 500);
});
$(".HomeClaimWrapper .img").mouseout(function() {
$(".HomeClaimWrapper .img").animate({
top: "0px"
}, 500);
});
});