48 CZ-PRG (GMT+1)
US-NYC (GMT-5)
Blazor Web App (Server rendered)

A field guide to depth on the web

Parallax
scrolling.

A page moves forward. Its layers drift at their own pace. The result is a little depth—and a more memorable way to tell a story.

Bootstrap 5.3 layout 3 live effects Responsive
01THE BOOTSTRAP 5.3 BASELINE

Start with a clear frame.

Bootstrap 5.3 does not include a built-in parallax component. It gives us a dependable responsive grid and controls; a small, progressive CSS layer creates the depth.

BS 5.3 RESPONSIVE
LIVE SCROLL EFFECTONE IMAGE · ONE LAYER · EASY TO READ
A SIMPLE STARTING POINT

Let the image
take its time.

A single photographic layer moves gently as the page passes by.

SCROLL TO FEEL IT
Bootstrap provides the layout; this subtle transform supplies the parallax.translate3d() + requestAnimationFrame
02FOUR SEPARATE PARALLAX TYPES

Four types.
Each with its own purpose.

Each example is separated into its own titled and explained panel. The first two both use three image layers, with a different movement rule.

01 / THREE-LAYER DEPTH

Three planes, three speeds

Far, middle, and near images each move at a different vertical speed. Their separation creates a clear depth effect as one scene passes through the viewport.

3 image layersDifferent vertical speeds
FAR MID NEAR 3 LAYERS
02 / THREE-LAYER VERTICAL TRAVERSE

One image, two vertical extremes

The middle image travels from its upper position to its lower position as the scene crosses the viewport. A calm background and a slower foreground layer make the full three-layer movement easy to see.

3 image layersTop → bottom travel
THE CENTER IMAGE TRAVELS VERTICALLY
03 / DRIFT

Horizontal passage

Wide image panels slide in opposite directions while the reader scrolls down. A useful accent for a gallery or an editorial sequence.

Horizontal motionOpposing layers
A DIFFERENT DIRECTION
04 / REVEAL

Slow zoom reveal

The image scales subtly as it crosses the viewport. It adds presence to a hero image without competing with the copy.

ScaleSingle focal image
03Stay
with the
moment.
ZOOM IN / SLOWLY
03VERTICAL BACKGROUND BETWEEN TWO BLOCKS

One moving image.
Two steady moments.

This pattern places a tall image between two regular content blocks. While the page moves down, the background image shifts vertically at a different speed.

CONTENT BLOCK 01 · THE THOUGHT

Give the story a place to pause.

The first block introduces an idea in a calm, readable layout. Then the moving landscape creates a visual bridge.

BACKGROUND LAYER VERTICAL SHIFT
THE VISUAL BRIDGE

The page moves on.
The image keeps its pace.

A restrained vertical offset connects the two blocks without interrupting the reading flow.

50° 05′ N 14° 25′ E
CONTENT BLOCK 02 · THE NEXT IDEA

Arrive with a fresh point of view.

The second block continues the page after the image has done its work. The content remains in normal document flow and works without motion.

04THE MECHANICS

Depth comes from difference.

Each layer receives a small offset based on its scene’s position in the viewport. The page itself keeps its normal flow and scroll behavior.

Y
+
X
01

Layer

Separate foreground, middle ground, and background into independent images or shapes.

02

Set the pace

Use a small speed factor. Less movement usually feels more polished and keeps text readable.

03

Keep it in view

Update only visible scenes, batch work into one animation frame, and animate transforms rather than layout.

A SMALL, RESPONSIVE LAYERCSS + SCROLL POSITION
<div class="parallax-scene">
  <img class="parallax-layer"
       src="..."
       alt="...">
  <div class="content-layer">...</div>
</div>

.parallax-layer {
  transform: translate3d(0, var(--offset-y), 0);
  will-change: transform;
}

For simple scenes, CSS scroll-driven animations can be a progressive enhancement. JavaScript gives wider browser coverage and lets this guide respect reduced motion.

06DESIGN FOR EVERYONE

Make depth feel comfortable.

Motion should support orientation and atmosphere while leaving people in control.

Bootstrap 5.3 responsive breakpoints
  • Respect reduced motion

    Disable scroll-linked transforms when a visitor asks for less motion.

  • Keep meaning in the document

    Use real content and logical reading order; do not make depth carry essential information.

  • Use restrained travel

    Large, rapid movement can cause discomfort and make it harder to follow text.

  • Protect performance

    Use appropriately sized images, lazy-load offscreen scenes, and animate transforms only.

  • Keep a static fallback

    The story should remain complete when JavaScript or motion is unavailable.

DESIGN NOTE

Depth is not a destination.
It is a way to guide the eye.

SCROLL STORY · 03 SCENES

A little farther.
A little deeper.

Three full-screen moments. Let each image arrive at its own pace, then follow the story into the next frame.

01 03
01 / THE ARRIVAL

The quiet
begins here.

Let the horizon move slowly. Give the eye a place to land before the story opens.

Continue the journey
A MOMENT TO ARRIVE 01—03
02 / THE PASSAGE

Follow
the line.

Two directions cross. The world shifts around one steady thought.

Move toward the light
A CHANGE OF PACE 02—03
03 / THE REVEAL

Somewhere
new.

The frame settles. The image comes closer. The story leaves room for what happens next.

Return to the field guide
A PLACE TO BEGIN AGAIN 03—03
END OF SEQUENCEKEEP THE MOTION. LOSE THE NOISE.
FINAL PARALLAX STUDY · THREE LAYERS

The middle image
moves between them.

The background holds the scene. A framed image travels vertically from one extreme to the other. The front layer drifts at its own pace—so all three planes stay distinct.

THE VERTICAL PASSAGE

One image.
Two extremes.

As the stage crosses the viewport, the center photograph travels from top to bottom relative to both surrounding layers.

01 BACKGROUND SLOW02 MOVING IMAGE TOP ↕ BOTTOM03 FOREGROUND COUNTER DRIFT
SCROLL 01—03
FIRST OF THE FINAL EXAMPLES · CLASSIC FIXED BACKGROUND

The original
parallax effect.

This is the classic W3Schools pattern: the background image stays fixed to the viewport while normal content blocks scroll in front of it. The two image panels below use Lorem Picsum photography.

01 / THE BACKGROUND STAYS

Scroll down.
The scene holds.

background-attachment: fixed;
FIXED IMAGE 01—02
FOREGROUND BLOCK 01

Content moves through the frame.

The image is attached to the viewport, while this light content block remains in the document flow. Keep the copy short and let the photo carry the atmosphere.

02 / THE STORY CONTINUES

A second view.
The same calm motion.

background-position: center;
PICSUM / LANDSCAPE 02—02
CLASSIC PARALLAX / END

That is the complete pattern: a fixed photographic background, readable content blocks in normal flow, and enough vertical space to reveal the movement.

LAST EXAMPLE · THREE-LAYER PARALLAX

Three layers.
One vertical journey.

Three separate image planes share one scene. The middle image travels only on the vertical axis from the upper mark to the lower mark. The background and foreground move at different, slower rates for a clear depth relationship.

THREE DISTINCT PLANES

Watch the
middle layer
travel.

Scroll through the frame. The center image rises and falls against the two surrounding layers.

01 BACKGROUND02 MOVING MIDDLE IMAGE03 FOREGROUND
WEB DESIGN / MOTION & DEPTHMove with intention
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.