I want to practice @keystrokes animations and can’t get a simple example to work. Here is my code:
I want to be able to move the box with the buttons by applying a proper class to my box on click. The problem is, I can’t get the box to animate properly more than once, each click after the first one only moves the box immediately to its final position without animation.
The animation runs correctly if set on a loop (by adding alternate and infinite), but I want to be able to manually move the box when I want to.