Неделя запускаСкидка 50% на год AuteurТарифы
Все компоненты

Compare Бесплатно

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.

Характер
Игривый
Зарегистрируйтесь бесплатно, чтобы скачать

Подходит для

  • Photo edits, redesigns, before and after.

Не подходит для

  • Two different pictures. Show them side by side.

Пропсы

Прочитаны прямо из TypeScript компонента, поэтому всегда актуальны.

ПропсТипПо умолчанию
beforeОбязательныйReactNode
afterОбязательныйReactNode
beforeLabelstring'Before'
afterLabelstring'After'
startnumber0.5

Лучше с навыком

Добавьте навык агенту, и он будет использовать Compare так, как задумано.

Motion with weightБесплатно

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

$npx velvo skill velvo-motion
Открыть навык
Empty, loading and error statesPro

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

Входит в ProОткрыть навык

Specs

Category
Drag and drop
Tier
Free
Built with
React and TypeScript
Files
17
Size
376 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
ДальшеJiggle grid