Skip to content

Components / Scroll

Scroll animations

13 components · 11 at 0 B

Scroll animations for Astro: reveal on scroll, parallax, scroll-linked scrub, sticky card stacks, horizontal scroll and reading progress.

Cards stick to the top as you scroll and each one shrinks and dims as the next slides over it, as on Apple product pages.

Chrome 116 · not Firefox · Safari 26scroll

Fill Text

Scroll

A statement that fills in as it is read: the words start faint and take their full colour in reading order, line after line, while the block crosses the viewport.

Chrome 120 · not Firefox · Safari 26scroll

The page content slides up to reveal a footer that is already in place underneath.

every browserscroll

A strip of items slides sideways while the page scrolls down and the section stays pinned.

Chrome 115 · not Firefox · Safari 26scroll

Parallax

Scroll

An element drifts at its own speed as it crosses the viewport, exactly in step with the scroll.

Chrome 115 · not Firefox · Safari 26scroll

A picture that resolves from blocks as it scrolls into view: a grid of squares in one colour lies over the slot, and each square clears on its own stretch of the picture's entry, picked by a seed, so the picture comes through in a scatter and stands whole by the time it is a third of the way up the screen.

Chrome 115 · not Firefox · Safari 26scroll

A table of contents that lights up as you read.

every browserscroll

An image that starts narrow and rounded and opens to the full width as it scrolls into view.

Chrome 115 · not Firefox · Safari 26scroll

A hairline along the top of the viewport that fills as the page is read.

Chrome 115 · not Firefox · Safari 26scroll

Entrance on scroll that plays once and stays, staggers its children, scrubs with the scroll position when asked, honours reduced motion, and keeps working after every ClientRouter navigation.

every browserscroll

Bind translate, scale, rotate and opacity to the scroll position: the element goes from the start values you give to neutral across a range of its own passage through the viewport, exactly in step.

Chrome 115 · not Firefox · Safari 26scroll

Steps on the left scroll by; one visual on the right stays put and changes with them.

Chrome 116 · not Firefox · Safari 26scroll

A line beside an article fills as it is read, with a dot at its head.

Chrome 115 · not Firefox · Safari 26scroll