Skip to content

Instantly share code, notes, and snippets.

@matiassingers
Created November 8, 2013 07:34
Show Gist options
  • Save matiassingers/7367507 to your computer and use it in GitHub Desktop.
Save matiassingers/7367507 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
$dropup-delay: 400ms
$dropup-time: $dropup-delay - 100ms
.dropup
$drop-sizes: (one, two, three, four, five, six, seven, eight, nine, ten, eleven)
$total-items: 0
@each $size in $drop-sizes
$total-items: $total-items + 1
&.#{$size}
$delay-item-time: $dropup-time / $total-items
@for $out-count from 1 through $total-items
$delay-time: $delay-item-time * $out-count
li:nth-child(#{$out-count})
transition-delay: $delay-time
&.shown.#{$size}
@for $in-count from 1 through $total-items
$items-left: $total-items - $in-count
$delay-time: $dropup-delay + (100ms * $items-left)
li:nth-child(#{$in-count})
transition-delay: $delay-time
.dropup.one li:nth-child(1) {
transition-delay: 300ms;
}
.dropup.shown.one li:nth-child(1) {
transition-delay: 400ms;
}
.dropup.two li:nth-child(1) {
transition-delay: 150ms;
}
.dropup.two li:nth-child(2) {
transition-delay: 300ms;
}
.dropup.shown.two li:nth-child(1) {
transition-delay: 500ms;
}
.dropup.shown.two li:nth-child(2) {
transition-delay: 400ms;
}
.dropup.three li:nth-child(1) {
transition-delay: 100ms;
}
.dropup.three li:nth-child(2) {
transition-delay: 200ms;
}
.dropup.three li:nth-child(3) {
transition-delay: 300ms;
}
.dropup.shown.three li:nth-child(1) {
transition-delay: 600ms;
}
.dropup.shown.three li:nth-child(2) {
transition-delay: 500ms;
}
.dropup.shown.three li:nth-child(3) {
transition-delay: 400ms;
}
.dropup.four li:nth-child(1) {
transition-delay: 75ms;
}
.dropup.four li:nth-child(2) {
transition-delay: 150ms;
}
.dropup.four li:nth-child(3) {
transition-delay: 225ms;
}
.dropup.four li:nth-child(4) {
transition-delay: 300ms;
}
.dropup.shown.four li:nth-child(1) {
transition-delay: 700ms;
}
.dropup.shown.four li:nth-child(2) {
transition-delay: 600ms;
}
.dropup.shown.four li:nth-child(3) {
transition-delay: 500ms;
}
.dropup.shown.four li:nth-child(4) {
transition-delay: 400ms;
}
.dropup.five li:nth-child(1) {
transition-delay: 60ms;
}
.dropup.five li:nth-child(2) {
transition-delay: 120ms;
}
.dropup.five li:nth-child(3) {
transition-delay: 180ms;
}
.dropup.five li:nth-child(4) {
transition-delay: 240ms;
}
.dropup.five li:nth-child(5) {
transition-delay: 300ms;
}
.dropup.shown.five li:nth-child(1) {
transition-delay: 800ms;
}
.dropup.shown.five li:nth-child(2) {
transition-delay: 700ms;
}
.dropup.shown.five li:nth-child(3) {
transition-delay: 600ms;
}
.dropup.shown.five li:nth-child(4) {
transition-delay: 500ms;
}
.dropup.shown.five li:nth-child(5) {
transition-delay: 400ms;
}
.dropup.six li:nth-child(1) {
transition-delay: 50ms;
}
.dropup.six li:nth-child(2) {
transition-delay: 100ms;
}
.dropup.six li:nth-child(3) {
transition-delay: 150ms;
}
.dropup.six li:nth-child(4) {
transition-delay: 200ms;
}
.dropup.six li:nth-child(5) {
transition-delay: 250ms;
}
.dropup.six li:nth-child(6) {
transition-delay: 300ms;
}
.dropup.shown.six li:nth-child(1) {
transition-delay: 900ms;
}
.dropup.shown.six li:nth-child(2) {
transition-delay: 800ms;
}
.dropup.shown.six li:nth-child(3) {
transition-delay: 700ms;
}
.dropup.shown.six li:nth-child(4) {
transition-delay: 600ms;
}
.dropup.shown.six li:nth-child(5) {
transition-delay: 500ms;
}
.dropup.shown.six li:nth-child(6) {
transition-delay: 400ms;
}
.dropup.seven li:nth-child(1) {
transition-delay: 42.85714ms;
}
.dropup.seven li:nth-child(2) {
transition-delay: 85.71429ms;
}
.dropup.seven li:nth-child(3) {
transition-delay: 128.57143ms;
}
.dropup.seven li:nth-child(4) {
transition-delay: 171.42857ms;
}
.dropup.seven li:nth-child(5) {
transition-delay: 214.28571ms;
}
.dropup.seven li:nth-child(6) {
transition-delay: 257.14286ms;
}
.dropup.seven li:nth-child(7) {
transition-delay: 300ms;
}
.dropup.shown.seven li:nth-child(1) {
transition-delay: 1000ms;
}
.dropup.shown.seven li:nth-child(2) {
transition-delay: 900ms;
}
.dropup.shown.seven li:nth-child(3) {
transition-delay: 800ms;
}
.dropup.shown.seven li:nth-child(4) {
transition-delay: 700ms;
}
.dropup.shown.seven li:nth-child(5) {
transition-delay: 600ms;
}
.dropup.shown.seven li:nth-child(6) {
transition-delay: 500ms;
}
.dropup.shown.seven li:nth-child(7) {
transition-delay: 400ms;
}
.dropup.eight li:nth-child(1) {
transition-delay: 37.5ms;
}
.dropup.eight li:nth-child(2) {
transition-delay: 75ms;
}
.dropup.eight li:nth-child(3) {
transition-delay: 112.5ms;
}
.dropup.eight li:nth-child(4) {
transition-delay: 150ms;
}
.dropup.eight li:nth-child(5) {
transition-delay: 187.5ms;
}
.dropup.eight li:nth-child(6) {
transition-delay: 225ms;
}
.dropup.eight li:nth-child(7) {
transition-delay: 262.5ms;
}
.dropup.eight li:nth-child(8) {
transition-delay: 300ms;
}
.dropup.shown.eight li:nth-child(1) {
transition-delay: 1100ms;
}
.dropup.shown.eight li:nth-child(2) {
transition-delay: 1000ms;
}
.dropup.shown.eight li:nth-child(3) {
transition-delay: 900ms;
}
.dropup.shown.eight li:nth-child(4) {
transition-delay: 800ms;
}
.dropup.shown.eight li:nth-child(5) {
transition-delay: 700ms;
}
.dropup.shown.eight li:nth-child(6) {
transition-delay: 600ms;
}
.dropup.shown.eight li:nth-child(7) {
transition-delay: 500ms;
}
.dropup.shown.eight li:nth-child(8) {
transition-delay: 400ms;
}
.dropup.nine li:nth-child(1) {
transition-delay: 33.33333ms;
}
.dropup.nine li:nth-child(2) {
transition-delay: 66.66667ms;
}
.dropup.nine li:nth-child(3) {
transition-delay: 100ms;
}
.dropup.nine li:nth-child(4) {
transition-delay: 133.33333ms;
}
.dropup.nine li:nth-child(5) {
transition-delay: 166.66667ms;
}
.dropup.nine li:nth-child(6) {
transition-delay: 200ms;
}
.dropup.nine li:nth-child(7) {
transition-delay: 233.33333ms;
}
.dropup.nine li:nth-child(8) {
transition-delay: 266.66667ms;
}
.dropup.nine li:nth-child(9) {
transition-delay: 300ms;
}
.dropup.shown.nine li:nth-child(1) {
transition-delay: 1200ms;
}
.dropup.shown.nine li:nth-child(2) {
transition-delay: 1100ms;
}
.dropup.shown.nine li:nth-child(3) {
transition-delay: 1000ms;
}
.dropup.shown.nine li:nth-child(4) {
transition-delay: 900ms;
}
.dropup.shown.nine li:nth-child(5) {
transition-delay: 800ms;
}
.dropup.shown.nine li:nth-child(6) {
transition-delay: 700ms;
}
.dropup.shown.nine li:nth-child(7) {
transition-delay: 600ms;
}
.dropup.shown.nine li:nth-child(8) {
transition-delay: 500ms;
}
.dropup.shown.nine li:nth-child(9) {
transition-delay: 400ms;
}
.dropup.ten li:nth-child(1) {
transition-delay: 30ms;
}
.dropup.ten li:nth-child(2) {
transition-delay: 60ms;
}
.dropup.ten li:nth-child(3) {
transition-delay: 90ms;
}
.dropup.ten li:nth-child(4) {
transition-delay: 120ms;
}
.dropup.ten li:nth-child(5) {
transition-delay: 150ms;
}
.dropup.ten li:nth-child(6) {
transition-delay: 180ms;
}
.dropup.ten li:nth-child(7) {
transition-delay: 210ms;
}
.dropup.ten li:nth-child(8) {
transition-delay: 240ms;
}
.dropup.ten li:nth-child(9) {
transition-delay: 270ms;
}
.dropup.ten li:nth-child(10) {
transition-delay: 300ms;
}
.dropup.shown.ten li:nth-child(1) {
transition-delay: 1300ms;
}
.dropup.shown.ten li:nth-child(2) {
transition-delay: 1200ms;
}
.dropup.shown.ten li:nth-child(3) {
transition-delay: 1100ms;
}
.dropup.shown.ten li:nth-child(4) {
transition-delay: 1000ms;
}
.dropup.shown.ten li:nth-child(5) {
transition-delay: 900ms;
}
.dropup.shown.ten li:nth-child(6) {
transition-delay: 800ms;
}
.dropup.shown.ten li:nth-child(7) {
transition-delay: 700ms;
}
.dropup.shown.ten li:nth-child(8) {
transition-delay: 600ms;
}
.dropup.shown.ten li:nth-child(9) {
transition-delay: 500ms;
}
.dropup.shown.ten li:nth-child(10) {
transition-delay: 400ms;
}
.dropup.eleven li:nth-child(1) {
transition-delay: 27.27273ms;
}
.dropup.eleven li:nth-child(2) {
transition-delay: 54.54545ms;
}
.dropup.eleven li:nth-child(3) {
transition-delay: 81.81818ms;
}
.dropup.eleven li:nth-child(4) {
transition-delay: 109.09091ms;
}
.dropup.eleven li:nth-child(5) {
transition-delay: 136.36364ms;
}
.dropup.eleven li:nth-child(6) {
transition-delay: 163.63636ms;
}
.dropup.eleven li:nth-child(7) {
transition-delay: 190.90909ms;
}
.dropup.eleven li:nth-child(8) {
transition-delay: 218.18182ms;
}
.dropup.eleven li:nth-child(9) {
transition-delay: 245.45455ms;
}
.dropup.eleven li:nth-child(10) {
transition-delay: 272.72727ms;
}
.dropup.eleven li:nth-child(11) {
transition-delay: 300ms;
}
.dropup.shown.eleven li:nth-child(1) {
transition-delay: 1400ms;
}
.dropup.shown.eleven li:nth-child(2) {
transition-delay: 1300ms;
}
.dropup.shown.eleven li:nth-child(3) {
transition-delay: 1200ms;
}
.dropup.shown.eleven li:nth-child(4) {
transition-delay: 1100ms;
}
.dropup.shown.eleven li:nth-child(5) {
transition-delay: 1000ms;
}
.dropup.shown.eleven li:nth-child(6) {
transition-delay: 900ms;
}
.dropup.shown.eleven li:nth-child(7) {
transition-delay: 800ms;
}
.dropup.shown.eleven li:nth-child(8) {
transition-delay: 700ms;
}
.dropup.shown.eleven li:nth-child(9) {
transition-delay: 600ms;
}
.dropup.shown.eleven li:nth-child(10) {
transition-delay: 500ms;
}
.dropup.shown.eleven li:nth-child(11) {
transition-delay: 400ms;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment