Motion Library ‹ Free tools

All / Scroll

Pinned hero that shrinks

A full-screen hero stays pinned and scales into a rounded card as you scroll, revealing the page beneath.

CSSJavaScriptIntermediate
Live demo Open full screen

Good for

Opening a landing page with a cinematic hero that hands over to content.

Watch out for

Drive transform and border-radius from one progress value, and clamp it between 0 and 1.

Accessibility

Wrap motion in @media (prefers-reduced-motion: reduce) and switch it off or shorten it for people who ask for less movement.