Skip to content

Instantly share code, notes, and snippets.

@cointilt
Created May 30, 2013 20:55
Show Gist options
  • Save cointilt/5681163 to your computer and use it in GitHub Desktop.
Save cointilt/5681163 to your computer and use it in GitHub Desktop.
Loop through slides and delay animation
// 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