frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

CSS-Native Parallax Effect

https://dan-webnotes.com/posts/2026-06-02-css-native-parallax-effect/
32•dandep•1h ago

Comments

baliex•1h ago
That sounds interesting but it would be a whole lot more interesting if the page was itself an example of said effect!
phelm•1h ago
A demo https://codepen.io/editor/phelm/pen/019e87f5-dfec-7372-9849-...
frereubu•1h ago
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
anssip•45m ago
Noticed the same thing. In Mac Safari it works without setting any flags.
werdnapk•30m ago
It's been behind a flag for ages. Maybe because of performance issues?
WithinReason•27m ago
tried 4 browsers, didn't work in any of them
alpinisme•10m ago
FWIW it works on iPhone safari
account42•37m ago
What an age where we need a pile of javascript as well as a bot check to demo a simple CSS trick.
Mashimo•17m ago
Only worked for me on mobile (vivaldi android) not on vivaldi / chrome / edge on Desktop.
mpeg•57m 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•36m 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.
som•8m ago
No doubt quite a few folk with the same question. Keen to understand performance tradeoffs.

Obvious comparison note would be that the "new" method currently enjoys somewhat limited browser support (no Firefox without a flag, and only since Safari 26)

thomasikzelf•29m 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•28m ago
Love the one-variable design where scale and translate stay in sync automatically, just wish Firefox would get off the flag already.
duskdozer•25m 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.
sillyboi•8m ago
It would be awesome to put an interactive example right in the article.

Why Janet? (2023)

https://ianthehenry.com/posts/why-janet/
161•yacin•2h ago•63 comments

Adafruit Receives Demand Letter from Fenwick Legal Counsel on Behalf of Flux.ai

https://blog.adafruit.com/
112•semanser•1h ago•40 comments

CSS-Native Parallax Effect

https://dan-webnotes.com/posts/2026-06-02-css-native-parallax-effect/
33•dandep•1h ago•16 comments

The newest Instagram “exploit” is the goofiest I've seen

https://www.0xsid.com/blog/meta-account-takeover-fiasco
1885•ssiddharth•19h ago•427 comments

Can the stockmarket swallow Anthropic, SpaceX and OpenAI?

https://www.economist.com/finance-and-economics/2026/06/01/can-the-stockmarket-swallow-anthropic-...
419•1vuio0pswjnm7•12h ago•733 comments

Muxcard, a dyi credit card size computer

https://github.com/krauseler/muxcard
85•sargstuff•2d ago•21 comments

macOS needs its grid back

https://blog.hopefullyuseful.com/blog/macos-needs-its-grid-back/
284•ranebo•10h ago•163 comments

CQL: Categorical Databases

https://categoricaldata.net/
50•noworriesnate•3d ago•13 comments

Webcam head tracking, webcam to control in‑game FOV

https://www.openfov.com/
8•mwit2023•2d ago•3 comments

Chipotlai Max

https://github.com/cyberpapiii/chipotlai-max
256•nigelgutzmann•12h ago•39 comments

OpenAI frontier models and Codex are now available on AWS

https://openai.com/index/openai-frontier-models-and-codex-are-now-available-on-aws/
290•typpo•14h ago•101 comments

How is Groq raising more money?

https://www.zach.be/p/how-the-hell-is-groq-raising-more
119•hasheddan•10h ago•52 comments

Debug Project

https://debug.com/
234•Eridanus2•15h ago•94 comments

AI Agent Guidelines for CS336 at Stanford

https://github.com/stanford-cs336/assignment1-basics/blob/main/CLAUDE.md
434•prakashqwerty•19h ago•140 comments

CS336: Language Modeling from Scratch

https://cs336.stanford.edu/
490•kristianpaul•21h ago•48 comments

Should you normalize RGB values by 255 or 256?

https://30fps.net/pages/255-vs-256-division/
279•pplanu•18h ago•118 comments

Microsoft builds MacBook Pro rival with NVIDIA-powered Surface Laptop Ultra

https://www.windowslatest.com/2026/06/01/microsoft-builds-its-ultimate-macbook-pro-rival-with-the...
231•jbk•23h ago•481 comments

Fooling around with encrypted reasoning blobs

https://blog.cryptographyengineering.com/2026/05/29/fooling-around-with-encrypted-reasoning-blobs/
102•supermatou•4d ago•17 comments

Strace-ui, Bonsai_term, and the TUI renaissance

https://blog.janestreet.com/strace-ui-bonsai-term-and-the-tui-renaissance/
65•matt_d•7h ago•42 comments

Launch HN: Expanse (YC P26) – Unlock Wasted GPU Capacity

85•ismaeel_bashir•22h ago•25 comments

What appear to be biochemical processes may be a natural feature of geology

https://www.quantamagazine.org/the-dirt-that-refused-to-die-20260601/
246•speckx•20h ago•89 comments

On Reading SRAMs in IR Images, and Establishing Bounds on Trust

https://www.bunniestudios.com/blog/2026/on-reading-srams-in-ir-images-and-establishing-bounds-on-...
6•zdw•1d ago•0 comments

Ask HN: Who is hiring? (June 2026)

200•whoishiring•20h ago•281 comments

Michael Burry says neither SpaceX nor Anthropic is worth $1T

https://www.businessinsider.com/big-short-michael-burry-spacex-anthropic-ipo-ai-bubble-claude-2026-6
55•mgh2•1h ago•59 comments

Alphabet announces $80B equity capital raise to expand AI infra and compute

https://abc.xyz/investor/news/news-details/2026/Alphabet-Announces-Proposed-80-Billion-Equity-Cap...
210•gregschlom•15h ago•192 comments

I made my phone slow on purpose

https://vinewallapp.com/notes/i-made-my-phone-slow-on-purpose/
214•gcampos•4d ago•178 comments

A new way to build chips: Sequentially stacking silicon to extend Moore's Law

https://matse.illinois.edu/news/85775
56•hhs•2d ago•34 comments

Crystal Nights (2008)

https://www.gregegan.net/MISC/CRYSTAL/Crystal.html
49•rorylawless•10h ago•6 comments

America's Corporate Protector

https://www.bloomberg.com/features/2026-trump-cfpb-enforcement
11•petethomas•1h ago•1 comments

Florida sues OpenAI and Sam Altman over AI risks

https://www.politico.com/news/2026/06/01/openai-hit-with-florida-lawsuit-00944215
242•cyunker•19h ago•181 comments