Platform
VaultVault
  • Free15
  • Navigation19
  • Buttons9
  • Scroll55
  • Text27
  • Sliders & marquees19
  • Gallery & images67
  • Cursor24
  • Page transitions10
  • Loaders2
  • Backgrounds10
  • UI components33
ButtonsPart of ProButtons
IconsPart of ProIcons
  • Interface Essentials144
  • Social Icons69
  • Payment Badges41
SavedPart of ProSaved
Support
DocumentationDocumentation
MCP serverMCP server
SettingsSettings
VaultGallery & imagesLagging Column Grid
Colour Shift SectionsBrowse all 182CRT Glitch Hover
  • Free15
  • Navigation19
  • Buttons9
  • Scroll55
  • Text27
  • Sliders & marquees19
  • Gallery & images67
  • Cursor24
  • Page transitions10
  • Loaders2
  • Backgrounds10
  • UI components33
  • Interface Essentials144
  • Social Icons69
  • Payment Badges41
Sign inSign in

Start free. The code for 15 components, no card needed.

Get 15 free

Lagging Column Grid

This one is locked. Become a member to open the code for it and the rest of the Vault.

See plansTry the 15 free ones

What you'll need.

Install

  • gsap

Setup

npm i gsap

More like this

  • Grid
  • Velocity
  • Elastic
  • Parallax

Features.

  • A wall of image tiles where every column trails the scroll by its own amount, then catches up when the page stops
  • Four motions decide which columns lag most: elastic (the edges), stretch (the edges, plus squash and stretch), wave (one side to the other) and centre pull (the middle)
  • A reverse switch flips the order of every motion
  • Stretch squashes the tiles narrow and tall when you scroll fast, anchored at the bottom when scrolling down and the top when scrolling up
  • The catch-up is frame-rate independent, so it feels the same at 60Hz and 120Hz
  • Works with native scrolling or with Lenis: it follows the page's scroll position every frame
  • 5 columns, 3 at 991px and below, and one still column on phones
  • Respects prefers-reduced-motion: the wall stays still
  • Only needs GSAP (for its ticker)

How to get it right.

Give it room to scroll

The effect is the gap between the page and the columns while you scroll. A wall taller than the screen, with content above and below, shows it best.

Use a multiple of the columns

Tiles are dealt into columns in turn (1st to column 1, 2nd to column 2…). 15 tiles in 5 columns ends level; an odd count leaves a ragged bottom.

Mix the pictures

Neighbours move apart and back together, so contrasting images side by side make the motion easier to read. The demo mixes mountains, sea, dunes and riders.

Pick the motion for the layout

Wave reads as a sweep and suits wide walls. Elastic and stretch pull the outer columns, which frames whatever is in the middle. Centre pull drags the middle and suits a symmetrical wall.

Variations.

  • Wave — the default, reversed: the left column lags most
  • Elastic — data-au-motion="elastic"
  • Stretch — data-au-motion="stretch": tiles squash and stretch with speed
  • Centre pull — data-au-motion="pull"
  • Flipped — data-au-reverse="false" on any of them
  • Your look — --clg-gap, --clg-pad, --clg-radius and --clg-columns on the grid

Where it fits.

  • Portfolio home — a wall of recent work under the intro
  • Moodboards and galleries — many pictures with a bit of life
  • Campaign pages — a picture break between two text sections
  • Shop lookbooks — products and lifestyle shots mixed

Frequently asked.

No. It eases each column itself, so it works on native scroll. With Lenis it reads Lenis's smoothed position, which softens it further.

At 767px and below the wall is one column, and one column has nothing to lag against.

Yes: set --clg-columns on the grid (and in the media queries). The script reads the column count from the CSS grid and re-deals the tiles when it changes.

While you scroll, trailing columns can hang a little past the bottom of the wall before they catch up. Leave some space after it.

Yes, gsap only. No plugins.

Related components.

Pro

File Drawer Cards

Hover

Pro

Capsule Image Hero

Click

Pro

Depth Fly-Through Hero

Load