Hello everyone! How can i stop an animation of 1 css rule without touching everything other? For example: $('div').animate({width:'+=300'}, 'slow'); $('div').animate({opacity:'hide'}, 'slow'); $('button').click(function(){ $('div').stop('width').animate({width:'-=300'}, 'slow'); });
And maybe it's good itea to have namespaces for animation just like at events: $("#block1").animate( { width: "90%"}, { queue: false, duration: 5000, namespace:'blah-blah' } ) $("#block1").stop('.blah-blah'); And can i run animation agan (after .stop())? $('div').animate({width:'+=300'}, 'slow').stop().run();