Skip to content
Back to the lab

The site's one scroll entrance · power2.out 0.6s

Scroll entrance: fade and rise

How lists and content blocks enter across the site: they fade in while moving up from 24px below, each child 60ms after the previous one. It is the site's only scroll entrance.

Source · GitHub

The Reveal component: y 24, opacity 0 → 1, 0.6s on power2.out, triggered once at "top 85%"; with a stagger, the children are 60ms apart. The content is always in the DOM (server-rendered and indexable). GSAP hides it on the client just before the tween starts, and only by opacity, never visibility: transparent content stays in the tab order and in find-in-page, so when keyboard focus reaches it the browser scrolls to it and the entrance plays. Only the first twelve children are staggered; the rest enter together with the twelfth, so the end of a long list does not wait. When the tween ends, clearProps removes transform, opacity and visibility, leaving no inline styles, so hover tweens and Flip elsewhere read clean elements. "Again" remounts the list.

Source

Source files on GitHub:

Back to the lab