News for hackers. Stuff that matters.
Re:CSS-Native Parallax Effect by mrcsmcln on Tuesday June 02, 2026 @09:12AM (#48369829)
I played around with this API some time ago. It’s simple and high-performance, but one feature I wish existed is damping. Scroll-driven animations are tied directly to the scroll timeline, so there’s no concept of the parallax object “catching up” to the scroll progress over, say, one second. From what I remember, `animation-timing-function` feels weird when you scroll, so it’s not the right solution. GSAP offers this, but it’s JS-only.

There are no comments on this comment yet.