V
viberdy.dev

Image Comparison Slider · viberdy.dev

A before/after reveal with a glass grip on a spring-driven divider: press anywhere to glide it there, drag without a jump, use the arrow keys, or turn on hover mode. Corner labels fade as the divider reaches them, it splits left/right or top/bottom, and with no images it draws its own night-to-day lake scene. No dependencies.

npx shadcn@latest add @viberdy/image-comparison-slider
Preview Image Comparison Slider on viberdy.dev's site (opens in a new tab)
Loading the source for image-comparison-slider…
Files

—