Sharing is caring!
Parallax scrolling is the effect where the background moves slower than the foreground, creating a sense of depth. It is one of the few web effects that survived the trend cycle — because when it is done well it is almost invisible, and when it is done badly it makes people close the tab.
This guide covers what still works in 2026: the CSS that does the job without scroll listeners, the performance traps, and the accessibility rules most parallax tutorials still ignore.
How parallax actually works
Classic parallax listened to the scroll event and moved layers with JavaScript. That approach is now the wrong default: scroll handlers run on the main thread, fight with the compositor, and on a mid-range phone they drop frames while the user is scrolling — which is exactly when the effect is visible.
The modern version uses background-attachment: fixed for simple hero sections, or CSS scroll-driven animations and transform: translate3d() for layered depth, both of which the browser can composite without asking JavaScript for permission.
The rules that separate a good parallax page from a bad one
- Move one layer, not five. Two speeds are enough to suggest depth. Five layers read as a slideshow.
- Keep the offset small. 10–20% travel is plenty. Anything that makes text slide while you read is a usability bug.
- Never move the text. Background layers can move; copy should stay stable so it can be read and selected.
- Budget the images. A parallax hero is usually the heaviest asset on the page. Compress to AVIF/WebP and preload only the first frame.
Accessibility: the part most tutorials skip
Motion can trigger nausea and dizziness. Wrap every parallax effect in a prefers-reduced-motion check and serve a static layout for users who ask for it — that is not optional in 2026, and it is a two-line media query:
@media (prefers-reduced-motion: reduce) { .parallax { transform: none !important; } }
Also check keyboard scrolling and Safari on iOS: fixed backgrounds behave differently there, and `background-attachment: fixed` is still unreliable on mobile Safari.
When not to use parallax
Skip it on long articles, dashboards, checkout flows and anything where the user is reading for information. Use it on a landing page hero, a single storytelling section, or a portfolio piece where the scroll is part of the narrative — and then stop after that section.
What makes a scrolling website feel fast?
Three things: the scroll is not hijacked, the moving layer is composited with transform rather than layout properties, and the effect stops after one section. A scrolling website that keeps animating through the whole page feels slower than a static one, even when the frame rate is identical.
FAQ
Does parallax hurt SEO?
No, as long as the content is in the HTML and the page stays fast. It hurts indirectly when the effect costs you Core Web Vitals — especially CLS and INP.
Can I do parallax without JavaScript?
Yes. `background-attachment: fixed`, CSS scroll-driven animations, and transform layers cover most cases. Reach for JavaScript only when you need physics or scroll-linked timelines.
Keep reading
More front-end work: 8 JavaScript background effects, frontend development, and our design inspiration archive.
Read next
- 23 Business Card Designs + the Print Specs That Matter (2026)
- 32 Beautiful Envelope Design Examples (2026)
- Eid Al-Adha Mubarak: 19 Designs for Inspiration (2026)
- 50 AI-Generated Design Inspiration Examples
All designs remain the property of their creators. If you own one and want it removed, contact us.