Motionshelf
← All components

Text

Title Reveal

Each word rises in turn, then a marker draws under the key word.

Install

npx shadcn@latest add https://motionshelf-pi.vercel.app/r/title-reveal.json

Copies the file into your project. Requires React 19, Tailwind CSS v4 and GSAP (installed as a dependency).

Props

NameTypeDefaultDescription
linesstring[]["Animations that", "close the sale."]One string per line. Words are separated by spaces.
highlightstring"close"The word that gets the highlight marker.
subtitlestring"Each word rises in turn…"Line under the title.
accentstring"#1f5bff"Color of the highlight marker.
loopbooleantrueReplay forever with a pause between runs.
classNamestring""Extra classes for the outer element.

Dependencies

  • gsap
  • @gsap/react