Created
October 19, 2011 23:30
-
-
Save matharchod/1299995 to your computer and use it in GitHub Desktop.
A jQuery function that fades in a group of elements (i.e. a group of LIs) one element at a time, in succession.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* FADE IN TEXT */ | |
$('.fader').delay(0).each(function (i){ //SELECTS ALL ELEMENTS WITH THE CLASS "FADER" | |
var me = $(this); | |
setTimeout(function(){ $(me).fadeIn('slow'); }, (400 * i)); // SETS FADE IN SPEED AND DELAY BETWEEN EACH | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment