design-infraGitHub
Report a problem or share feedback← Catalog

Rolling text button

curatedfree

motion/rolling-text-button

An example of rolling a duplicate button label into place on hover with Motion for React.

hover · press — subtlerecipeRefinedPlayful
$pnpm add motion # then adapt the free source from https://motion.dev/examples/react-rolling-text-button

npm deps: motion

Our notes

Button whose label rolls to a new word on hover/click — a free alternative to Motion+ text components. Free example (motion is MIT); copy and adapt the source from the example page.
Rolling text button preview
Source
Motion (motion.dev)
Kind
transition
Categories
transition, button, text-effect
Use as
recipe — technique you apply to your own markup
Applies to
button
Motion
on hover, press · subtle · motion · low cost
Tags
motion, animate, variants
Licence
motion / motion/react / motion-v are MIT. Motion+ (premium components, example source, AI Kit pro tools) is paid — one-time Personal licence or per-seat Business.
Live demo
motion.dev
Docs
motion.dev