Back to AIX Effects LibraryQA Verified · Synced
Scroll & Motion/<ScrollStorytelling />·Intermediate

Scroll-Driven Storytelling

Engineered with pure CSS transitions and scrubbed state hooks so narrative visuals remain responsive across desktop and touch sliders.

Next.js 16+React 19TypeScriptTailwind CSSZero External Deps
Scrub continuous 0 -> 1 timeline35%
02 · MORPH35%

Drag timeline scrub bar or jump across beat markers.

Installation

Zero External Dependencies

Zero external packages needed.

Usage

import { ScrollStorytelling } from '@/components/effects/library/scroll/ScrollStorytelling'

<ScrollStorytelling
  beats={[
    { id: '01', label: '01', title: 'Anchor', accent: '#536dfe' },
    { id: '02', label: '02', title: 'Depth', accent: '#8765f7' },
    { id: '03', label: '03', title: 'Scrub', accent: '#30bfef' },
    { id: '04', label: '04', title: 'Settle', accent: '#536dfe' },
  ]}
/>

Props & API Reference

2 props
PropTypeDefaultDescriptionEffect
beatsStorytellingBeat[](required)Checkpoint labels along 0..1 timeline.Determines active checkpoint styling.
progressnumber | nullnullExternally scrubbed timeline fraction (0..1).Synchronizes shape with parent scroll value.

More in Scroll & Motion

View All 36 →
Atelier
SCROLL CONTAINER SPECIMEN

Scroll-aware header compressing cleanly from 76px to 56px.

01 · Threshold 18px: Applies translucent 72px frosted glass surface & bottom hairline.
02 · Threshold 165px: Compacts cleanly to 56px with elevated contrast CTA pill.
03 · Smart Hide 240px: Hides on downward scroll and reveals smoothly scrolling back up.

Sticky Navbar Scroll Behavior

Multi-state sticky header morphing 76px -> 72px -> 56px with top progress thread and Smart Hide.

View Details
Scroll inner box below
0%
0%

01. Passive Listener Architecture: Measures container scrollTop ratio without layout polling.

02. Top Hairline Track: Maps progress cleanly across hardware scaleX transform.

03. SVG Dashoffset Geometry: Computes stroke circumference accurately from ring diameter.

04. Tabular Clarity: Prevents horizontal numeric wobble as percentages cross two digits.

05. End Checkpoint: Settles crisp at 100% upon reaching footer boundary.

Scroll Progress Indicator

Linear edge bar paired with tabular SVG stroke-dashoffset scroll completion indicator.

View Details
01 · PINNED SHELL
RENDER
Pinned Visual

Sticky Scroll Reveal

Two-column sticky reveal pairing scrollable documentation items with a stationary visual deck.

View Details