Last active
August 29, 2015 14:03
-
-
Save seven-phases-max/a5332d9c6eec58ba14b7 to your computer and use it in GitHub Desktop.
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
| .generate-something(4); | |
| .generate-something(@i) when (@i > 0) { | |
| // just invoke next iteration *before* styles | |
| // so the styles output when the loop is unwinded | |
| // and the whole thing works in reverse: | |
| .generate-something((@i - 1)); | |
| .something-@{i} { | |
| left: (@i * 1%); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment