Can someone help me slow down the rotation of the images on this javascript? Site is pick-quick.com jQuery('.animated_icon').eq(0).animate({opacity:1},{"duration": 500}); jQuery('.animated').eq(0).animate({opacity:1},{"duration": 500}); jQuery('.animated').eq(0).removeClass("animated"); jQuery('.animated_icon').eq(0).removeClass("animated_icon"); HTML: I set the animate.Duration in script.js from anything to 100 to 10000 and it doesn't effect the script what so ever. Kind of at a loss here.
you have declare the duration wrong and i think you need to put the removeClass parts inside the success parameter of the animate function.. should be.. jQuery('.animated_icon').eq(0).animate({opacity:1},500,function(){ jQuery('.animated_icon').eq(0).removeClass("animated_icon"); }); jQuery('.animated').eq(0).animate({opacity:1},500,function(){ jQuery('.animated').eq(0).removeClass("animated"); }); Code (markup):