Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
$colors-list: width height border margin;
.foo {
@each $current-color in $colors-list {
$i: index($colors-list, $current-color) * .5s;
transition: $current-color $i;
}
}
.foo {
transition: width 0.5s;
transition: height 1s;
transition: border 1.5s;
transition: margin 2s;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.