jQuery Fade In Sequence

    [javascript]
    if($j(‘body’).is(‘#mtvGuy’)){
    //Hide before the fade
    $j(‘div#sideNav li’).hide();
    /**
    * Side Navigation fade in loop
    */
    function outer(){
    var a = 0;
    function inner(){
    if(a===$j(‘div#sideNav li’).length){return;}
    a++;
    $j(‘div#sideNav ul li’).eq(a).fadeIn(210,function(){fader();});
    }
    return inner;
    }
    var fader = outer();
    fader();
    }
    [/javascript]

    Leave a Reply