Also called Image comparison slider, Compare slider
A draggable divider reveals one image on one side and another on the other.
Use for
Photo retouching, product comparisons
Add a "Before-After Slider" (also called an image comparison slider or compare slider) to [where].
Two images sit on top of each other, and dragging a vertical divider reveals more of one and less of the other; the divider follows the pointer directly with no lag.
Start the divider in the middle, and make it work with touch and with the arrow keys.
Also called Image zoom on hover, Zoom-pan, Ken Burns hover zoom, Zoom effect
An image scales up inside its frame on hover, sometimes panning with the pointer.
Use for
Product cards, thumbnails
Add a "Hover Zoom" effect (also called image zoom on hover or zoom-pan) to [where].
While the pointer is over the image, it should slowly and smoothly scale up inside its frame while the frame keeps its size, and ease back when the pointer leaves.
Clip the image to its frame so nothing spills over the layout, and show the same zoom on keyboard focus.
Also called Mask reveal, Clip-path reveal, SVG mask effect, Scroll Image Reveal, Clip-path Reveal on Scroll
An image is uncovered by a shrinking cover or expanding mask edge.
Use for
Editorial images on scroll
Add an "Image Reveal Wipe" (also called a mask reveal or clip-path reveal) to [where].
As the image scrolls into view, a cover should wipe away from one side and smoothly uncover it in step with the scroll, so it is fully open well before it leaves the screen.
Reserve the image's space so the layout does not jump, and show the image fully uncovered for users who prefer reduced motion.
Also called Slow pan and zoom, Ken Burns, Kenburns
A still image slowly zooms and pans across its frame.
Use for
Hero slideshows, backgrounds
Add a "Ken Burns Effect" (also called slow pan and zoom) to [where].
While each image is shown it should very slowly zoom and drift in one direction only, then cross-fade to the next image, which moves in a different direction: calm and continuous.
Keep every image covering its whole frame at every moment so no edge ever shows, and keep the images still for users who prefer reduced motion.
Also called Image zoom overlay, Medium-style zoom
A thumbnail scales up from its place into a large centered view over a dimmed backdrop.
Use for
Image galleries, articles
Add a "Lightbox Zoom" (also called an image zoom overlay or Medium-style zoom) to [where].
Clicking a thumbnail should make it grow smoothly from its own place into a large centered view while the page behind fades back, and closing should shrink it back into the same place.
Close it with Escape or a click on the backdrop, move focus into the view while it is open, and return focus to the thumbnail afterward.
Also called Lens, Loupe, Lens (Magnifier), Hover zoom lens
A circular lens follows the pointer and shows a magnified area of the image.
Use for
Product detail images
Add a "Magnifier Lens" (also called a lens or loupe) to [where].
A round lens should sit directly under the pointer with no lag and show a magnified view of the part of the image beneath it.
Keep the magnified view lined up with the exact point under the pointer, and on touch devices show the lens while the finger is held on the image.