Stylus concatenate variable and string -
following code
for $i in (1..81) .block:nth-child({$i}) transition transform 500ms ease $i\s
will compiled to
.block:nth-child(1) { transition: transform 500ms ease 1 s; } ......
but space between number , seconds redundant!
how can remove it?
one possible approach:
for $i in (1..81) .block:nth-child({$i}) transition transform 500ms ease 1s * $i
that's quite similar example given in selector interpolation section of stylus documentation.
Comments
Post a Comment