SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2012
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Jquery code makes page jump

    I created a code (with the help of someone on this very site) and now whenever I go to the bottom of the page, the page itself jumps back up about 20px or so.... and here is the code..

    Code:
    function blinkAnim(obj, speed){
        obj.fadeOut(speed, function(){
            obj.fadeIn(speed, function(){
              blinkAnim(obj, speed);  //Recursively call this function
            });
        });   
    }
    $(function(){
        blinkAnim( $('.glow'), 1000 );
    	
    });
    anybody know why it jumps, or is it even a jQuery problem?

  2. #2
    SitePoint Enthusiast
    Join Date
    Apr 2012
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Fixed the problem, just added an absolute positioning to the glow class


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •