Shrinking Header
The header shrinks over the first 120 px of scroll and gains its shadow only then.
Meant for
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.
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.