Created
May 30, 2013 20:55
-
-
Save cointilt/5681163 to your computer and use it in GitHub Desktop.
Loop through slides and delay animation
This file contains hidden or 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
// previous code condenced to make sense of code | |
this.slides = $('.slides'); | |
// loop through each slide with a delay to slide in | |
_.each(this.slides, function (v, k) { | |
// slide in slide | |
$(this.slides[k]).delay(200 * k).animate({ | |
top: '0px', | |
opacity: 1 | |
}, 800); | |
}, this); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment