Why doesn't the spinner spin if I forget 'animate-spin'?
Without 'animate-spin', the element is static. The rotation animation is only triggered by the 'animate-spin' class which applies the CSS animation.
💡 Animation classes must be present to see motion; static styles alone don't animate.
Why does the spinner look like a full circle and not spin?
If the top border is not transparent, the spinner looks like a solid ring and the rotation is less visible. The transparent top border creates a visual gap that makes spinning obvious.
💡 Use 'border-t-transparent' to create a visible spinning effect.
Why is the spinner size not changing when I adjust width and height?
Tailwind's width and height classes set fixed sizes. Make sure you use matching width and height classes (e.g., w-16 and h-16) to keep the spinner circular and sized correctly.
💡 Width and height must be equal for a perfect circle spinner.