postcss-for icon indicating copy to clipboard operation
postcss-for copied to clipboard

loop-error occurs (Module build failed: Undefined variable $i)

Open viveksinghup opened this issue 7 years ago • 4 comments

@for $i from 1 to 13 { .target:nth-child(#{$i}) { animation-delay: $i * 0.1s; } } For Loop increment of nth-of-child elements and their delay value..

viveksinghup avatar Feb 14 '18 08:02 viveksinghup

I am also getting this issue

barberousse avatar Oct 04 '18 15:10 barberousse

Same here, seems this project is no longer maintained :(

zicodeng avatar Oct 26 '19 01:10 zicodeng

The same issue is happening..........

anasadulmajeed avatar Apr 06 '20 10:04 anasadulmajeed

Try writing as

.target:nth-child($(i)) { animation-delay: $(i) * 0.1s; } }

iantearle avatar Apr 15 '20 23:04 iantearle