Collapsing Parallax Toolbar

Build a collapsing header from five siblings in one box — four sharing a single scroll state, one driven by a boolean instead — with artwork moved by a graphics layer at half the scroll rate, a title interpolated along a two-segment curve into the pinned bar, and a derived flip point that swaps the floating back button for a real top bar. Use when a parallax header jitters or re-measures while scrolling, when the collapsing title drifts off its intended path, or when the pinned bar appears at the wrong scroll offset after a window resize.

maxrave-dev 2b970fd 8.4 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/collapsing-parallax-toolbar commit 2b970fdcf1

Frequently asked questions

npx skillmds@latest add maxrave-dev/collapsing-parallax-toolbar