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

Sticky Scroll Reveal

Keeps key product diagrams fixed in focus while readers move down narrative explanations.

Next.js 16+React 19TypeScriptTailwind CSSFramer Motion
01 · PINNED SHELL
RENDER
Pinned Visual

Scroll left steps or click step entries to morph sticky panel.

Installation

npm install framer-motion
framer-motion^13.4.0

Smoothly crossfades active card visuals inside sticky panel.

Usage

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

<StickyScrollReveal
  sections={[
    { id: '01', badge: '01 · CAPTURE', title: 'Track Scroll', description: 'Đo phần trăm cuộn liên tục.', accent: '#536dfe', metricLabel: 'CLS', metricValue: '0.000' },
    { id: '02', badge: '02 · CROSSFADE', title: 'Swap Visuals', description: 'Đổi cảnh mượt không giật chữ.', accent: '#8765f7', metricLabel: 'FRAME', metricValue: '60 FPS' },
  ]}
/>

Props & API Reference

2 props
PropTypeDefaultDescriptionEffect
sectionsStickyRevealSection[](required)Ordered narrative step entries paired with visual metrics.Maps scroll steps cleanly.
heightClassstring'h-[290px]'Height Tailwind class bounding scrollable panel.Sizes showcase viewport height.

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
Scrub continuous 0 -> 1 timeline35%
02 · MORPH35%

Scroll-Driven Storytelling

Continuous 0..1 scrub timeline transforming scale, rotation, and border-radius smoothly.

View Details