Default Playhead
Tracks from when the element enters the viewport (bottom) to when it exits (top). The progress bar fills as you scroll through.
playhead-viewport-start="bottom"
playhead-viewport-end="top"
playhead-element-start="top"
playhead-element-end="bottom"
Smoothed Progress
The smoothing attribute is a time constant in milliseconds — progress eases toward the raw scroll position instead of tracking it exactly. Drag the slider to change it live.
smoothing="0" (left)
smoothing="400" (right)
Percentage Anchors
Viewport and element anchors also accept percentages, so the playhead can sit anywhere — not just at top, center, or bottom. Here progress runs across the middle half of the viewport.
playhead-viewport-start="75%"
playhead-viewport-end="25%"
playhead-element-start="top"
playhead-element-end="bottom"
Transition Out
Progress runs the whole time the element is on screen, and the stars ease in by squaring it — calc(p * p * drift) — so they drift gently on entry and accelerate as they exit.
playhead-viewport-start="bottom"
playhead-viewport-end="top"
playhead-element-start="top"
playhead-element-end="bottom"
Symmetric Playhead
Both start and end anchored to the viewport center. Text reveals from center outward as the element crosses the midpoint.
playhead-viewport-start="center"
playhead-viewport-end="center"
playhead-element-start="top"
playhead-element-end="bottom"
Sunset to Starlight
Sky transitions from golden hour to deep night. Mountain layers separate with parallax depth. Stars emerge in the second half.
default playhead (bottom → top)
Centered Playhead
Element center tracked against viewport edges. The ring orbits through the full color spectrum as it traverses.
playhead-viewport-start="bottom"
playhead-viewport-end="top"
playhead-element-start="center"
playhead-element-end="center"
Reversed
Layers converge inward instead of separating — parallax values push elements down as progress increases.
playhead-viewport-start="bottom"
playhead-viewport-end="top"
playhead-element-start="top"
playhead-element-end="center"
Multi-Effects
Rotation, scale, opacity, blur, clip-path, color cycling, and typography — all from a single --scroll-progress value.
default playhead (bottom → top)