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
Post a Comment