Semana de lanzamiento50 % de descuento en un año de AuteurVer planes
EspaciosHazte Pro
Todos los componentes

Compare Gratis

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

Abrir en el editor
Coast at sunset
OriginalVivid

Drag anywhere on the photo.

Carácter
Juguetón
Regístrate gratis para descargar

Úsalo para

  • Photo edits, redesigns, before and after.

No para

  • Two different pictures. Show them side by side.

Props

Leídas del propio TypeScript del componente, así que siempre están al día.

PropTipoPor defecto
beforeObligatoriaReactNode
afterObligatoriaReactNode
beforeLabelstring'Before'
afterLabelstring'After'
startnumber0.5

Mejóralo con una skill

Añade una a tu agente y usará Compare tal como se diseñó.

Motion with weightGratis

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

$npx velvo skill velvo-motion
Leer la skill
Empty, loading and error statesPro

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

Incluida en ProLeer la skill

Specs

Category
Drag and drop
Tier
Free
Built with
React and TypeScript
Files
17
Size
366 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
SiguienteJiggle grid