Scroll Text Reveal

Words brighten one by one as the paragraph scrolls into view.

We roast on Tuesdays, ship on Wednesdays, and answer every email ourselves. Scroll slowly: each word brightens as it reaches the middle of the screen.

import { ScrollTextReveal } from '@brand-studio/ui';

export default function ScrollTextRevealDemo() {
  return (
    <div style={{ padding: '30vh 0' }}>
      <ScrollTextReveal text="We roast on Tuesdays, ship on Wednesdays, and answer every email ourselves. Scroll slowly: each word brightens as it reaches the middle of the screen." />
    </div>
  );
}

Installation

pnpm add @brand-studio/ui

Usage

import { ScrollTextReveal } from '@brand-studio/ui';
<ScrollTextReveal text="We roast on Tuesdays…" />

Accessibility

  • Uses CSS scroll-driven animation. Browsers without it, and readers who prefer reduced motion, see the text at full strength.
  • The text stays one paragraph for screen readers.

API Reference

PropTypeDefault
textstring
as?React.ElementType
className?string''

Still, Deskhand and Hollis are fictional brands. The coffee photographs are original generated artwork. @brand-studio/ui is MIT licensed.