Semaine de lancement50 % sur un an d’AuteurVoir les offres
MCP
EspacesPasser à Pro
Tous les composants

Compare Gratuit

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

Ouvrir dans l’éditeur
Coast at sunset
OriginalVivid

Drag anywhere on the photo.

Caractère
Joueur
Inscrivez-vous gratuitement pour télécharger

À utiliser pour

  • Photo edits, redesigns, before and after.

Pas pour

  • Two different pictures. Show them side by side.

Props

Lues dans le TypeScript du composant lui-même, donc toujours à jour.

PropTypePar défaut
beforeObligatoireReactNode
afterObligatoireReactNode
beforeLabelstring'Before'
afterLabelstring'After'
startnumber0.5

Améliorez-le avec une skill

Ajoutez-en une à votre agent et il utilisera Compare comme prévu.

Motion with weightGratuit

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

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

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

Incluse dans ProLire la skill

Specs

Category
Drag and drop
Tier
Free
Built with
React and TypeScript
Files
18
Size
402 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
SuivantJiggle grid