Skip to content

Instantly share code, notes, and snippets.

@grayghostvisuals
Created April 16, 2014 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grayghostvisuals/10920334 to your computer and use it in GitHub Desktop.
Save grayghostvisuals/10920334 to your computer and use it in GitHub Desktop.
Dustin's Delay Loop
.q-as > li {
opacity: 0;
$delay: 0ms;
@for $i from 1 through 4 {
$delay: $delay + 40;
&:nth-child(#{$i}) { @include transition-delay($delay); }
}
.visible & { opacity: 1; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment