skip navigation

Flip an Image

picsum image

This is a surprising way to flip over an image using the transform: scale() function.

img {
    transform: scaleX(-1);
}

Using scaleY() rather that X, will flip the image vertically.