Direct link to the article Bringing Back Parallax With Scroll-Driven CSS Animations

Bringing Back Parallax With Scroll-Driven CSS Animations

Parallax is a pattern in which different elements of a webpage move at varying speeds as the user scrolls, creating a three-dimensional, layered appearance. It once required JavaScript. Now we have scroll-driven animations in CSS, which is free from the main-thread blocking that can plague JavaScript animations.

Blake Lundquist on

Latest Articles

Keep browsing in the archives

Quick Hits

A CSS Masonry prototype has landed in Chrome and Edge 140. Really leans into the “Just Use Grid” camp. I immediately like the masonry shorthand property but gotta wrap my head around item-tolerance.

#
More Quick Hits →

Collections

Fresh From the Almanac

Properties, selectors, rules, and functions!

Latest CSS Guides

Dive deep into CSS features and concepts

Classic Tricks

Timeless CSS gems