Rotate images

Discussion in 'JavaScript' started by Rub3X, Feb 3, 2012.

  1. #1
    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.
     
    Rub3X, Feb 3, 2012 IP
  2. stephan2307

    stephan2307 Well-Known Member

    Messages:
    1,277
    Likes Received:
    33
    Best Answers:
    7
    Trophy Points:
    150
    #2
    have you cleared you cache?
     
    stephan2307, Feb 6, 2012 IP
  3. JohnnySchultz

    JohnnySchultz Peon

    Messages:
    277
    Likes Received:
    4
    Best Answers:
    7
    Trophy Points:
    0
    #3
    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):
     
    JohnnySchultz, Feb 6, 2012 IP
  4. yuranga

    yuranga Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Firstly send the proper code of image.This is not the proper code.
    Thanks
     
    yuranga, Feb 7, 2012 IP