Launch week50% off a year of AuteurSee plans
SpacesGet Pro
All components

Compare Free

Before and after, one over the other. Drag anywhere to wipe across; the labels step aside as you near them.

Coast at sunset
OriginalVivid

Drag anywhere on the photo.

Character
Playful
Sign up free to download

Use it for

  • Photo edits, redesigns, before and after.

Not for

  • Two different pictures. Show them side by side.

Props

Read from the component’s own TypeScript, so it’s always current.

PropTypeDefault
beforeRequiredReactNode
afterRequiredReactNode
beforeLabelstring'Before'
afterLabelstring'After'
startnumber0.5

Make it better with a skill

Add one to your agent and it uses Compare the way it was designed.

Motion with weightFree

Keeps its springs and press feel intact when your agent wires it into your app.

$npx velvo skill velvo-motion
Read the skill
Empty, loading and error statesPro

Designs its empty, loading and error moments, the ones that usually get forgotten.

Comes with ProRead the skill

Specs

Category
Drag and drop
Tier
Free
Built with
React and TypeScript
Files
17
Size
365 KB
Needs
framer-motion
Install
npx velvo add compare-slider
Works with
Next.js, Vite, Remix, Expo web

Licence

Velvo free licence
  • Personal and commercial use
  • Change it however you like
  • No credit needed

Not for resale as a component or a UI kit.

Tags

drag and dropgesturefreereact
NextJiggle grid