Skip to content

Instantly share code, notes, and snippets.

@NeilJS
Created April 30, 2013 08:24
Show Gist options
  • Save NeilJS/5487368 to your computer and use it in GitHub Desktop.
Save NeilJS/5487368 to your computer and use it in GitHub Desktop.
Fade in elements in consecutive order.
// Fade in divs consecutively (optional delay)
var delayBetweenEach = 300;
var fadeSpeed = 400;
$(".myDiv").delay(1000).each(function(index) {$(this).delay(delayBetweenEach*index).fadeIn(fadeSpeed);});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment