I'm making a really simple animation on a webpage. When the images overlap, the wrong ones are on top and the one I want on top is on the bottom. How can I fix this?
You can use CSS z-index Property
The z-index property specifies the stack order of an element.
An element with greater stack order is always in front of an element with a lower stack order.