How do I make a loading spinner with only CSS?
Draw a square with equal width and height, give it a border and border-radius: 50%, then make one side of the border transparent. Animate transform: rotate(360deg) with @keyframes and the transparent gap becomes a spinning arc. No image or JavaScript is needed.