I have a list ul> li * 5 (not always the same amount). I set the counter for which I get:
1 2 3 4 5
li:nth-child(n):before { counter-increment: skill; content: counter(skill); color: white; }
Question Can I use the counter (skill) inside calc () or can I add units to it px em rem% ms s
I tried:
transition: all 250ms linear #{counter(skill)} * 1s; transition: all 250ms linear counter(skill) * 1s;
I want to increase the delay, for example:
li 1s delay li 2s delay li 3s delay li 4s delay li Xs delay
html css css3 css-counter
T04435
source share