I have the following function that applies an animation to an element after a click event.
The only way I could figure out how to make the animation able to retrigger