Launch-Woche50 % auf ein Jahr AuteurPläne ansehen
SpacesPro holen
Alle Komponenten

Compare Kostenlos

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

Im Editor öffnen
Coast at sunset
OriginalVivid

Drag anywhere on the photo.

Charakter
Verspielt
Kostenlos anmelden zum Herunterladen

Gut für

  • Photo edits, redesigns, before and after.

Nicht für

  • Two different pictures. Show them side by side.

Props

Direkt aus dem TypeScript der Komponente gelesen, also immer aktuell.

PropTypStandard
beforePflichtReactNode
afterPflichtReactNode
beforeLabelstring'Before'
afterLabelstring'After'
startnumber0.5

Mit einem Skill noch besser

Gib deinem Agenten einen davon, und er nutzt Compare so, wie es gedacht ist.

Motion with weightKostenlos

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

$npx velvo skill velvo-motion
Skill lesen
Empty, loading and error statesPro

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

Mit ProSkill lesen

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
WeiterJiggle grid