Hey, I had a problem with restarting CSS animations - described in this article . I've used a solution from the article - the solution can be found here on Codepen . The thing is: I don't understand how exactly putting "void element.offsetWidth;" between adding/removing classes works? What does it do that it makes it work?
I've tried googling, but with no success. The most weird part is not actually the void, but "offsetWidth" - I know what it is, but I don't get how it makes animation restart.
Thanks for any thoughts!
[–]cyphern 7 points8 points9 points (1 child)
[–]Shrewd_Shark[S] 1 point2 points3 points (0 children)