Stop Animation Jquery -


i have side menu appears , disappears when hover on each item. when click on item, want animation stop.

this animation on mouseover

$('#navigation > li').hover(     function() {         $('a',$(this)).stop().animate({'marginleft':'-7px'},200);     },     function () {         $('a',$(this)).stop().animate({'marginleft':'-150px'},200);     } ); 

this animation @ click of single item

$("#navigation > li").click(function(){        $('a',$(this)).stop(); }); 

try it

$("#navigation > li").click(function(){    $(this).children('a').stop(); }); 

Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -