Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save matharchod/1299995 to your computer and use it in GitHub Desktop.
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.
/* 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