Dolly: a CSS-only scroll animation library with 34 moves and no JavaScript
Dolly is a scroll animation library written entirely in CSS, with 34 effects named after film camera moves such as tilt, pan, crane, rack focus and whip pan. Usage comes down to adding a data-dolly attribute to existing elements, with pinned sections wrapped in data-dolly-scene and data-dolly-pin; animations play forward as you scroll down and run in reverse as you scroll back up. Unlike AOS, ScrollReveal and sal, which set opacity: 0 in a regular CSS rule and reveal elements with JavaScript, Dolly keeps the hidden state only inside @keyframes[1], so content stays visible in browsers that cannot run the animation. It ships via npm i @dollyjs/core or as a single CSS file from a CDN, with no script to load, no IntersectionObserver, no scroll listeners and no init function, and every move switches off when the visitor has prefers-reduced-motion[2] set. Scroll timelines[3] work in Chrome and Edge 115+, Safari 26+ and Opera, about 87% of visitors; Firefox users see the finished page without the motion, and no polyfill[4] is needed.
Read the original usedolly.devDiscussion
Discussion
Most commenters report poor performance on mobile, calling the demo page laggy in Chrome on Android and broken in Brave. Several call the lack of Firefox support a dealbreaker, and others criticize the landing page copy as AI-written. Some praise the progressive enhancement approach, noting that the worst outcome is content that simply doesn't animate.
Sources
-
usedolly.dev
Made a CSS-only scroll animation library, 34 moves, no JS



