Hacker News
CSS-Native Parallax Effect
baliex
|next
[-]
sourcecodeplz
|root
|parent
|next
[-]
Edit: if the body has class="no-sda", it uses a js fallback.
mpeg
|next
|previous
[-]
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
dandep
|root
|parent
|next
[-]
This approach adds a single class to the image container and that's it. Plus you can control many aspects of the animation such as entry/exit ranges, and make it control other properties like opacity or color, for example.
I know browser support is still lacking, but it will get there eventually. I'm not using this in production code yet, but I think it's useful to experiment with these new CSS APIs.
semolino
|root
|parent
|next
|previous
[-]
phelm
|next
|previous
[-]
frereubu
|root
|parent
|next
[-]
frereubu
|root
|parent
|next
[-]
werdnapk
|root
|parent
|next
|previous
[-]
goodmythical
|root
|parent
[-]
Fedora 44 Kernel: x86_64 Linux 7.0.10-201.fc44.x86_64 Firefox 151.0.2
anssip
|root
|parent
|next
|previous
[-]
WithinReason
|root
|parent
|previous
[-]
alpinisme
|root
|parent
[-]
deckar01
|root
|parent
|next
[-]
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
Mashimo
|root
|parent
|next
|previous
[-]
sheept
|next
|previous
[-]
[0]: https://www.keithclark.co.uk/articles/pure-css-parallax-webs...
[1]: blog: https://www.keithclark.co.uk/articles/pure-css-parallax-webs...
thomasikzelf
|next
|previous
[-]
apsurd
|root
|parent
|next
[-]
Can only see it on chrome though =/. I switched to Safari as the lesser of two data-harvesting evils. Or rather, with an iPhone I've already chosen my overlord. I also switched to Kagi. Trying to deGoogle myself.
Semaphor
|next
|previous
[-]
[0]: https://bugzilla.mozilla.org/show_bug.cgi?id=1676779