Inline staggered animation doesn't working
I want to make a staggered animation with css. And my count of element is not exact. So i should write dynamic css code. But it doesn't work.
Here is my code:
But value of my-counter variable is always 0.
Can you help me.
2 Replies
Could you create a code pen please?
Where are you defining the value of
--my-counter
?
Custom properties are only available within the element where they are created and their children.