Black Friday: 30% off Pro

Get 30% off

Scroll to Highlight

Preview

Customize

Scroll1.6s
Dim0.20
Text size48px

Installation

npx shadcn@latest add https://uibrik.com/r/scroll-highlight.json
Adds the files to components/uibrik/scroll-highlight and installs motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/scroll-highlight.

Usage

import { ScrollHighlight } from "@/components/uibrik/scroll-highlight/scroll-highlight";​const text = "Scroll slowly. Each word waits in the dark until you reach it, then steps into the light.";​<ScrollHighlight  play={0}  text={text}  scrollDuration={1.6}  dim={0.2}/>

Where to use Scroll to Highlight

  • Storytelling landing pages

    Words lighting up as you scroll past them pace a long statement.

  • Mission and manifesto sections

    Reading progress becomes visible as each word lights.

  • About pages

    Scroll-driven emphasis keeps readers moving through a paragraph.

    Pairs with Highlighter

Props

ScrollHighlight
text
Type string
"Scroll slowly. Each word waits in the dark until you reach it, then steps into the light."
The copy to animate.
scrollDuration
Type number
1.6
Replay scroll-through time.
dim
Type number
0.2
Opacity of words not yet reached.
playrequired
Type number
–
Each change plays the effect again; 0 shows its resting state.