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

Advertisements

Sr. Software Engineer

Tagged with: , ,
Posted in JQuery

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: