Creative agency glossaryWeb, UX/UI, and Design

Parallax Scrolling

Parallax scrolling is a web design technique in which background and foreground layers move at different speeds as a visitor scrolls, creating an illusion of depth.

What is parallax scrolling?

Look out of a train window and the fence rushes past while the hills barely move. That difference in speed, parallax, is how the eye reads distance, and animators have borrowed it for nearly a century, from Disney's multiplane camera to the layered backgrounds of side-scrolling video games. On the web it means splitting a page into layers that scroll at different rates: a background image that drifts slowly, text that moves at normal speed, an object in front that slides past faster.

It became a craze in web design in the early 2010s, when long single-page sites told stories as you scrolled through them, and it has never quite left. Today it is usually subtler: a hero image that lags a little behind the headline, a product that floats over its background, a section that reveals itself with a hint of depth.

Why it matters

Why parallax scrolling matters

Used with restraint, parallax gives a flat page a sense of space and pace. It can slow a reader down at the moment that matters, make a product feel physical, or turn a long scroll into something closer to a sequence in a film. Used carelessly, it does the opposite. Motion that moves against the reader's scroll can make people physically unwell, especially those with vestibular disorders. Heavy scripts that recalculate positions on every frame make pages stutter on phones. And text that moves while you try to read it is simply harder to read. The same effect can be the most memorable moment on a page or the reason people leave it.

In practice

How parallax scrolling works in practice

  1. 01

    The cheapest version is pure CSS: a background fixed in place, or layers given different depths with 3D transforms, so the browser handles the movement itself. Newer CSS scroll-driven animations tie an element's movement to the scroll position directly, without JavaScript. When more control is needed, a light script updates transforms in step with the scroll, touching only properties the browser can animate cheaply and never the layout.

  2. 02

    We treat parallax as seasoning. It goes on one or two moments on a page rather than every section, and the page is designed to read perfectly without it. Every effect respects the reduced motion setting, so visitors who have asked their device for less movement get a still page. Then it is tested on a mid-range phone, where most parallax effects either get switched off or reveal their cost.

Watch out

What people get wrong about parallax scrolling

Using it on everything. A page where every section slides, floats and drifts is tiring and slow, and the effect stops meaning anything. Second, hiding content inside the effect, so headlines and buttons only appear at a certain scroll position and search engines, screen readers and impatient visitors never see them. Third, assuming it impresses. Visitors rarely notice parallax that works; they always notice parallax that stutters. And using it as a substitute for content: depth and motion cannot make a thin story interesting, only make it take longer to scroll past.

Questions

People also ask

Is parallax scrolling bad for SEO?

Not in itself, but it often comes packaged with things that are: single-page sites with all their content on one address, heavy scripts that slow the page, and text hidden until a scroll position. Keep the content in real HTML, the page fast and the effect decorative, and search engines will not mind.

Does parallax scrolling work on mobile?

It can, but it is harder to do smoothly on phones, and some mobile browsers ignore fixed backgrounds. Light effects built with CSS transforms usually work well; heavy JavaScript effects are often better switched off on small screens.

Is parallax scrolling accessible?

Only if it is optional. Large motion effects can cause dizziness and nausea for people with vestibular disorders, so the effect should switch off when a device is set to reduce motion, and the page should make complete sense without it.

Next to it in the glossary

  1. Mobile-ResponsiveA mobile-responsive website is one whose layout, images and controls adapt automatically to a phone screen, so it can be used fully without zooming or scrolling sideways.
  2. NoopenerNoopener is a value for a link's rel attribute that stops a page opened in a new tab from accessing or controlling the page that opened it.
  3. NoreferrerNoreferrer is a value for a link's rel attribute that tells the browser not to pass on the address of the page a visitor came from when they follow the link.
  4. PersonaA persona is a fictional but research-based profile of a typical user or customer, used to keep a team's design and messaging decisions focused on real people.
  5. Persona DevelopmentPersona development is the process of turning audience research into a few named, lifelike profiles that a team can design, write and plan for.
  6. Pop-UpsA pop-up is a window or overlay that appears on top of a web page to show an offer, a sign-up form or a notice, usually triggered by time, scrolling or an attempt to leave.

Every Web, UX/UI, and Design term →

In the work

Where it shows up

All our creations →

From the journal

Read around it

The journal →

Talking the talk is one thing

We make the work.

RIOT is a creative agency and production studio in New York. Strategy, brand, film, photography, design and the campaigns that carry them, made by one team. A few lines is enough to start: we read every brief the same day.

    Footage