While hovering the vertically rotating anchor if the mouse is not near the center of the image the animated transform flickers using the following code:

```
@keyframes spin {0% {transform: rotateX(0deg);} 100% {transform: rotateX(360deg);}}
a:focus, a:hover {animation: spin 0.9s 1 linear;}

```

How do I prevent the flickering without changing the HTML?

<https://jsfiddle.net/jabcreations/ahcx0wfv/>