0.7.4 gives the Ambient pack weather. A page names one feed URL on its own site, and the pack sets data-weather from it, uses its sunrise and sunset for dawn and dusk, and never shows a stale observation. Helpers for producing the feed from Open-Meteo are included. Ambient p…
Pinned hero that scales and fades as the reader scrolls past. Pure CSS via position: sticky + animation-timeline: view().
Overview
A hero section that stays pinned to the top of the viewport while the user scrolls past it, then scales down and fades as it exits. The effect makes the transition into the article body feel cinematic without hijacking scroll.
Anatomy:
An outer .stage taller than the viewport — its height controls how long the hero stays pinned
The hero is position: sticky inside the stage
animation-timeline: view() on the hero binds a scale/fade animation to its exit progress
Browsers without scroll-driven animation support see a normal sticky hero — no broken layout
HTML
Stage + sticky hero
<sectionclass="stage"><headerclass="hero"><hgroup><h1>Sticky hero with scale-out</h1><p>The hero stays pinned while the user scrolls past it.</p></hgroup></header></section><main> ... content below the stage ...</main>
This gives a fade only. For combined scale-out you currently still want the custom keyframe shown above — bundled scale+fade is a future addition. See the view-progress trigger docs.
Notes
Stage height controls timing. A 2× viewport stage gives a comfortable hero pin. Make it 3× for a slower exit, 1.5× for a quicker one.
The animation-range negative start (exit -10%) starts the animation just before the hero actually begins exiting, so it feels responsive at the top of the scroll-out.
Don't set overflow: hidden on the stage — it breaks position: sticky.