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

Section Mask Transition

Keeps background & revealed foreground layouts stationary while animating mask geometry seamlessly at zero layout cost.

Next.js 16+React 19TypeScriptTailwind CSSZero External Deps
58%
BASE CANVAS · LIGHT
Clip-Path Geometry Mask
REVEALED CANVAS · DARK
Clip-Path Geometry Mask

Switch geometry mode and scrub percentage across frame.

Installation

Zero External Dependencies

Zero external packages needed.

Usage

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

<SectionMaskTransition
  maskMode="circle"
  revealPercent={58}
  baseLayer={<div className="p-8 bg-white text-black">Light Canvas</div>}
  revealedLayer={<div className="p-8 bg-neutral-950 text-white">Dark Spec Stage</div>}
/>

Props & API Reference

2 props
PropTypeDefaultDescriptionEffect
maskMode'circle' | 'inset' | 'diagonal''circle'Geometric clip-path morphology preset.Selects radial, boxed, or diagonal wipe geometry.
revealPercentnumber58Mask expansion reveal percentage (0..100).Controls extent of revealed layer.

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