Reputation: 79
$(".avatar-box1").mouseleave(function(){ $( ".avatar-box1" ).effect( "bounce", "slow" ); });
hello i need to run this effect only once per load/refresh the page. Grateful for any advice
Upvotes: 0
Views: 27
Reputation: 10924
You should use jQuery .one()
.one()
$(".avatar-box1").one("mouseleave", function(){ $( ".avatar-box1" ).effect( "bounce", "slow" ); });
Upvotes: 1