Compare 11

Pro

A compare section with a heading and short line above a wide photo comparison, where a draggable handle reveals the edited image over the unedited one.

Shadcn Compare 11 block

Component data

ID
compare11
Access
pro
Created
Nov 19, 2026
Type
block
Libraries
Radix UI, Base UI, React Aria

Compare 11 block design & features

Compare11 is a before and after compare section built with shadcn/ui and Motion. A large heading sits on the left with a description and a text link aligned to its baseline on the right, and a wide rounded photo fills the container below.

The photo is split by a white line and a round handle. The left side shows a dull, desaturated version and the right side shows the finished edit, with Before and After labels in the corners. Visitors can drag anywhere on the image or use the arrow keys on the handle, and on load the handle sweeps once across to show how it works.

It suits photo tools, retouching services, renovation companies and any product with a visible before and after. Colours come from the theme, so it works in light and dark mode, and reduced-motion visitors skip the intro sweep.