How stop the hover loop:jQuery

Hello Friends!
If you are using jQuery hover effect in your site and want to remove the hover loop then use jQuery stop() function. you can remove the loop by adding the stop() function.
We can create a nice fade effect without the common problem of multiple queued animations by adding .stop(true, true) to the chain:

$( "#hoverme-stop-2" ).hover(function() {
$( this ).find( "img" ).stop( true, true ).fadeOut();
}, function() {
$( this ).find( "img" ).stop( true, true ).fadeIn();
});

For more please go here
Enjoy Code! | Raghunath Blog

Leave a Reply

Your email address will not be published. Required fields are marked *