I see a blank space between variable and constant. When rendered in the browser, it interprets it as an invalid attribute as expected.
In the English version they have commented to me, well, marked as duplicated the question, but it is not exactly the same, since in the answers they gave me, they did not do arithmetic, but they were already fixed attributes.
INPUT:
.generateDelay(5);
.generateDelay(@n, @i: 1) when (@i =< @n) {
&:nth-child(@{i}) {
animation-delay: (.25*@i)s;
}
.generateDelay(@n, (@i + 1));
}
OUTPUT:
animation-delay: 0.25 s;
animation-delay: 0.5 s; //etc
Any solution?