Swap Text
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/button-swap-textAbout this component
The button label slides upward out of frame on hover while a secondary label slides in from below: a clean way to surface a call-to-action hint. Pure CSS transitions, no dependencies.
Triggers
- Hover
Techniques
- Transform only
- Transition delay stagger
Difficulty
Beginner
Accessibility
Reduced motion
Text transitions removed under prefers-reduced-motion.
Use it in anything you build, commercial and client work included. Licence