Word Highlight Scroll
Pinned copy that reads itself in as you scroll. Each paragraph section pins while its words light up one after another: a grey chip fades in, the word resolves through it, and selected keywords carry a colored pill; past 70 percent the sweep reverses. Bold color-card headlines sit between the sections. GSAP ScrollTrigger with Lenis, no images.
npx shadcn@latest add @compronents/word-highlight-scrollInstalls from ui.aryank.space. Needs a registry token and a one-time @compronents entry in components.json. The docs walk through both.
Checking access…
| Prop | Type | Default | Description |
|---|---|---|---|
| headlineHero / headlineCta / headlineOutro | string | BLANK editorial headlines | Color-card headlines between the paragraph sections. |
| aboutParagraphs / featuresParagraphs | [string, string] | BLANK studio copy | The two pinned word-reveal paragraph blocks. |
| keywords / embedded | string[] / boolean | Nine keywords / true | Pill-highlighted words; embedded owns the scroll container. |
headlineHero / headlineCta / headlineOutrotextThe three bold color-card headlines.
aboutParagraphs / featuresParagraphstextThe two pinned, word-revealed paragraph blocks.
keywordstextWords that get a colored pill during the reveal.
gsaplenis