I want to add classes on HTML elements one by one.
TweenMax.staggerTo(".some-class-name", 0.5, { className: "+=animation-class" }, 0.5);
I have this code, but it doesn't work. More precisely it works, but it doesn't add className
one by one.
How can I achieve an effect like this codepen but with className
?
Seems fine to me.
Hope this helps.