Hacker News new | ask | show | jobs
by phelm 15 days ago
A demo https://codepen.io/editor/phelm/pen/019e87f5-dfec-7372-9849-...
3 comments

There's me scrolling up and down and thinking "hey, it's not working!" But it's behind a flag on Firefox: https://caniuse.com/?search=view-timeline-name
For people saying it's not working in any browser - do you have some kind of reduced motion preference setting turned on? I can imagine that would have an effect on something like this and it's definitely working in Chrome for me.
Yes... there's a media query in the codepen disabling animation for people with reduced motion enabled.
Doesnt work on any browser for me
It's been behind a flag for ages. Maybe because of performance issues?
Enabling (layout.css.scroll-driven-animations.enabled) and refreshing the codepen gives a "we crashed this to prevent a crash from an infinite loop" clicking to allow the infinite loops allowed me to see the animation.

Fedora 44 Kernel: x86_64 Linux 7.0.10-201.fc44.x86_64 Firefox 151.0.2

Noticed the same thing. In Mac Safari it works without setting any flags.
tried 4 browsers, didn't work in any of them
FWIW it works on iPhone safari
But it jumps around and flickers pretty bad. Chrome’s own demos in the docs don’t work at all.

https://developer.chrome.com/docs/css-ui/scroll-driven-anima...

Edit: Their reference works and has some really nice demos. Must be an iframe problem. https://scroll-driven-animations.style/#demos

Only on iOS 26.
I don’t think it did for me. Are you on iOS 26?
Ahh, yes I am. 26.5
Only worked for me on mobile (vivaldi android) not on vivaldi / chrome / edge on Desktop.
What an age where we need a pile of javascript as well as a bot check to demo a simple CSS trick.
The JS and bot check are for making additional functionality, beyond just showing the example, work easily. I.e. editing and sharing edits from a browser. If all you want is a static example, feel free to make it without these things.