Skip to content
WunderUI
All effectsNavigation

Shrinking Header

The header shrinks over the first 120 px of scroll and gains its shadow only then.

Modern CSSNavigationPro

Meant for

NavbarApp Layout

Usage

On a Mobile Nav

Scroll the inbox. Over the first 120 px the bar loses height and gains a shadow, all three parts on one scroll timeline so they arrive together, and it comes back as you scroll up. The bar is the real MobileNav (data-wm-bar), its logo the mark (data-wm-mark); the bar keeps its height and slides up while its content moves back down, so nothing re-lays out. The list is the scroller (data-wm-scroller) and the class is its own timeline scope; on a page, leave out data-wm-scroll and it follows the page. Until you scroll, the preview runs it on a clock.

WunderUI
Inbox
Running: Index design tokens6.3s
Done: Deploy checkout-v342.1s
Done: Sync Figma variables3.8s
Waiting: Send weekly report—
Done: Rotate API keys0.9s
Failed: Import CSV1.2s
Done: Publish changelog2.4s
Done: Archive old runs11.0s
Running: Rebuild search index8.7s
Done: Compress uploads5.1s
Waiting: Renew certificates—
Done: Warm the cache1.6s

The class is wm wm-shrinking-header — the first half is the marker the trigger and reduced-motion rules hook into, the second is the effect.