Noticed the same thing. In Mac Safari it works without setting any flags.
werdnapk•12m ago
It's been behind a flag for ages. Maybe because of performance issues?
WithinReason•9m ago
tried 4 browsers, didn't work in any of them
account42•19m ago
What an age where we need a pile of javascript as well as a bot check to demo a simple CSS trick.
mpeg•39m ago
How does this compare to the classic css-native parallax effect? Before the scroll timeline APIs you'd use the "perspective" css property to create a container where the z plane is n pixels away from the screen, and then position each layer within it at a different z distance using transform: translateZ
That method is GPU accelerated too, so it is performant compared to some js solutions, and has worked well in every browser for around a decade
I like the idea of the scroll-timeline though, just keen to understand what the advantage is for this
iainmerrick•17m ago
I was wondering the same thing. That translateZ is a bit fiddly to get right, so I could believe this is a bit easier to use, maybe? And presumably this could be used for other properties besides position, like colors, opacity or blurs.
thomasikzelf•11m ago
You can make some really cool stuff with css scroll animations. I used SVG paths with a scroll animated dash offset to draw an image while scrolling. Zero javascript, it feels so smooth. https://thomaswelter.nl (the background)
rohitsriram•10m ago
Love the one-variable design where scale and translate stay in sync automatically, just wish Firefox would get off the flag already.
duskdozer•7m ago
In a world where it's increasingly overlooked, I'm glad the author mentions disabling it respecting user settings. I do think it should be reversed and only enabled with the `@media (prefers-reduced-motion: no-preference)`, but that is the opinion of someone who gets negative value from animations and is bemused by how much dev and compute time is spent on them.
baliex•47m ago