Trigger animation on each click in React

There’s an animation called roll that I need to apply to all dice that have not been selected upon each roll. What’s the best way of going about doing this? I already have a toggleAnimation function that sets an animated class on the dice when the game is won, I just don’t see how I can add an animation on each roll.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.