Created
April 30, 2013 08:24
-
-
Save NeilJS/5487368 to your computer and use it in GitHub Desktop.
Fade in elements in consecutive order.
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 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