r/webdev • • Oct 24 '26

Showoff Saturday Made a CSS-only scroll animation library, 34 moves, no JS

https://usedolly.dev

It's one stylesheet. You put `data-dolly="tilt-up"` on something and it animates as you scroll past. That's it. No dependencies, no JavaScript.

It's a vocabulary layer over CSS scroll-driven animations, which shipped in Chrome 115 and Safari 26 but have ergonomics nobody remembers.

The demo page doesn't run any JavaScript at all, so everything moving on it is just CSS.

34 moves named after camera stuff (pan, tilt, crane, rack focus).

Firefox doesn't do scroll timelines yet (supposedly coming in the next version in 3 days) so it gets a plain static page. That's on purpose, nothing is hidden waiting to be revealed, so the page is still usable.

153 Upvotes

48 comments sorted by

99

u/Seventhcircle72 Oct 24 '26

I think it's a noble pursuit, but your demo page is incredibly laggy and janky- doesn't bode well for an animation library. It performs really poorly on my mobile.

16

u/CaptainIncredible Oct 24 '26

I use Firefox. I'm scrolling on the page "What the hell is this supposed to do?" Took me a while to see the "this doesn't work on FF" text.

6

u/ikeif Oct 24 '26

So we are returning to “best viewed in Browser X” then?

I kid - I love demos but I do miss when the “this is browser limited” used to be the first call out.

2

u/GumboGuts Oct 24 '26

Hmm, let me look into this. The oldest phone I've tested this on was a Pixel 7, so not sure how it would perform on devices with less GPU headroom. I'm pretty sure it's an issue with the demo page, rather than the library though.

6

u/adamjonah Oct 24 '26

Same with me (OnePlus 15)

It's specifically when you scroll and lift off, you expect to continue scrolling with momentum but it just starts lagging when my finger leaves the display

Edit: This was in the Reddit browser, I opened in chrome and it was fine

10

u/cmac2992 Oct 24 '26

Works perfect in my real chrome browser, doesn't have any scroll momentum in reddits in app browser

3

u/stormblaz Oct 24 '26

It doesnt work on Reddit browser, needs to be opened in a dedicated browser, Reddit one lagged like crazy aka just clicking the link.

1

u/shaliozero Oct 24 '26

Runs like shit in Samsung Browser, flawless in Chrome.

1

u/dkarlovi Oct 25 '26

I'm on Pixel 9 Pro, it's a slideshow.

29

u/yeathatsmebro wearing many hats :^) Oct 24 '26

Each time I scroll and feel the page being janky, I know automatically it's vibe coded.

73

u/diiscotheque Oct 24 '26

Incompatible with Firefox is a no go.

36

u/GumboGuts Oct 24 '26

The feature is implemented in Firefox but it's behind a flag. It's supposed to be enabled by default in the next version (coming in 3 days), but until then everything works if you enable layout.css.scroll-driven-animations.enabled on about:config

1

u/ferrybig Oct 24 '26

Add an JavaScript to that polyfills the behaviour you need

6

u/cateyesarg Oct 24 '26

Chrome on android, extremely laggy, sorry dude, if you need a M6 Ultra to run it, it's worthless

1

u/GumboGuts Oct 24 '26

Looking into this. Pretty sure it's an issue with the demo page, rather than the stylesheet itself.

3

u/LuisG8 Oct 24 '26

Not working in Brave Android

1

u/GumboGuts Oct 24 '26

I use Brave myself and it works fine. What's the issue you are having?

2

u/mokolabs Oct 24 '26

The homepage won’t scroll on Safari. :(

1

u/GumboGuts Oct 24 '26

Is this on Desktop or Mobile?

0

u/[deleted] Oct 24 '26

[deleted] — view deleted comment

1

u/GumboGuts Oct 24 '26

hmm, must be a mobile issue. looking into it.

0

u/[deleted] Oct 24 '26

[deleted] — view deleted comment

1

u/WillChangeMyUsername Oct 24 '26

Me too. See nothing on the demo

1

u/ConduciveMammal front-end Oct 24 '26

Weirdly it works for me on iOS Safari. I’m 27.2 beta

28

u/hootener Oct 24 '26

I can't comment on the library because I haven't used it and several people have already mentioned some performance issues, etc that I encountered on mobile.

My feedback: please write your own landing page copy. Or have Claude draft it for you and then you can edit / punch up what comes out such that it sounds like how humans actually speak.

When I encounter marketing sites like this that are copywritten by Claude it lowers my trust in the project itself. If you can't take thirty minutes to punch up a modicum of text what other skeletons are hiding in the closet?

Claude is absolute dogshit at prose. So much so that it's pretty much immediately identifiable in the wild. Vibe coded or not you gave your limited time on this Earth to see this library exist. If you're going to do that, at least put your fingerprints on the marketing copy, too.

-2

u/YourMatt Oct 24 '26 edited Oct 24 '26

I don’t think Claude is dogshit at prose. They gave it a default that makes it obvious that Claude wrote it. I think that’s a good feature. I too am annoyed when I see people just use it in their copy, and it’s generally an instant bail when I see it, for the same reasons you mentioned.

If you’re writing copy with Claude, define its voice. The default should never be used.

19

u/paragraphbaron Oct 24 '26

The AI copy on your website is really bad, bordering on non-sensical. That's a big tell that I wouldn't use the library as it offers no ingenuity I couldn't get from my own prompts.

-15

u/kowdermesiter Oct 24 '26

How ironic that you say bad copy and nonsense and then don't explain anything :D

1

u/_selfthinker Oct 24 '26

That sounds interesting. I wish I could see it in action. I'm using Chrome 150 and nothing happens at all for me on your demo site. A video might help, just to see what it's supposed to be doing.

1

u/GumboGuts Oct 24 '26

Do you have "Reduce motion" turned on in your accessibility settings? They should work fine on Chrome 150 if there is nothing else blocking screen animations.

1

u/_selfthinker Oct 25 '26

Ah, yes, that was it.

6

u/rhooManu full-stack Oct 24 '26

AOS, ScrollReveal and sal all put opacity: 0 in a base rule and reveal it from script. Block the script and the page is blank. Dolly puts the hidden state only in keyframes, so no support means it didn't animate, never it didn't appear. The worst it can do is nothing.

*chef's kiss*

1

u/Key-Common7139 Oct 24 '26

31 or 34, pick one.

0

u/GumboGuts Oct 24 '26

lol, good catch. OG image is outdated. Updated, thanks!

4

u/ferrybig Oct 24 '26

Doesn't seem to work in Firefox mobile. The page doesn't change when I scroll and then it suddenly jumps to another transition

2

u/becauseiliked Oct 24 '26

The intention behind it is really cool. The web version looks fine, but on phone it seems to be a bit off.

2

u/skizzoat Oct 24 '26

Unusable on Android

2

u/Heretic911 Oct 24 '26

Horrible on android.

1

u/ikeif Oct 24 '26

I dig it. Reminds me when I worked at an agency and we made sites that used things like this. Now I only ever make internal UIs.

1

u/scylk2 Oct 25 '26

Doesn't work well in Samsung browser either 🫤

1

u/Acceptable-Gas4310 Oct 26 '26

The image says 31 moves, the title and body say 34. Are the other three hiding behind the cinema seats or did the count just creep up between renders

1

u/Disastrous-Town-4820 Oct 24 '26

the reddit app drops the momentum, chrome doesn't

filter and clip-path still leave the compositor. thats the 11 moves that aren't transform or opacity

0

u/ryanstephendavis Oct 24 '26

I'm on Firefox, is that why it's not really doing anything?

2

u/GumboGuts Oct 24 '26

Correct. The feature is implemented in Firefox but it's behind a flag. It's supposed to be enabled by default in the next version (FF 159, coming in 3 days), but until then everything works if you enable layout.css.scroll-driven-animations.enabled on about:config

-1

u/prince_jyggalag Oct 24 '26

This is so wonderful oh my good

0

u/nard-studios Oct 26 '26

I like the idea, but the library needs some real performance tuning on mobile. It's very laggy.

1

u/[deleted] Oct 24 '26

[removed] — view removed comment

-1

u/GumboGuts Oct 24 '26

Content staying readable is the ground rule, and reduced-motion shows everything on its final state immediately (animation-name: none and fill-mode: both), with decorative layers removed.

You're right about the properties though. 11 keyframes aren't transform/opacity only, rack and whip animate filter, iris/reveal/wipe-up animate clip-path and sequence steps background-position. I should write down the cost difference so people can pick the cheap ones when it matters.