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
VaultScrollCloth Bend Gallery
Sticky Chapter SwapBrowse all 182Depth Fly-Through Hero
  • 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

Cloth Bend Gallery

This one is free. Make an account and the code is yours, no card needed.

Create a free account

What you'll need.

Install

  • gsap
  • ScrollTrigger
  • three

Setup

npm i gsapregisterPlugin(ScrollTrigger, three)

More like this

  • Pinned
  • Velocity
  • Elastic
  • ScrollTrigger
  • Parallax
  • Sticky
  • 3D
  • Canvas
  • WebGL

Features.

  • A pinned, full-screen stage where twelve pictures at different depths drift up past a headline as you scroll
  • Near pictures are bigger and drift faster on screen, so the field has real depth
  • Scroll fast and every picture bends like cloth, its middle dragging behind its edges
  • Stop and the bend rings out on two springs and lies flat
  • The bend stays in each picture's plane, so nothing grows or shrinks while you scroll
  • Scrubbed by ScrollTrigger, and draws only while the field moves or the springs are still ringing
  • Without WebGL the pictures show as a plain grid under the headline
  • Respects prefers-reduced-motion: the field still drifts with the scroll, but nothing bends

How to get it right.

Load GSAP, ScrollTrigger and three.js first

The script reads window.gsap, window.ScrollTrigger and window.THREE. Load all three before code.js. If three never arrives, the section boots as a plain headline and grid.

Give it room to scroll

The section is --dbn-length tall (400vh by default) with a sticky stage inside, and its full length drives the drift. Don't put it inside a parent with overflow: hidden, or the stage stops sticking.

Use twelve pictures, in order

There are twelve fixed slots: seven portrait (4:5), three landscape (4:3) and two square. Each picture is cover-fitted to its slot, so pre-cropping to the slot's shape keeps the subject where you want it. With fewer pictures they repeat in order.

Tune the bend and the travel

data-au-strength scales the bend (0 keeps the pictures flat), data-au-travel sets how far the field moves across the scroll, and data-au-scrub how far it lags behind it. A longer scrub lag smooths the speed, so the bend gets softer too.

Retheme with variables

--dbn-bg is the stage and --dbn-fg the headline. --dbn-muted and --dbn-accent colour the optional sentence and eyebrow.

Eyebrow and sentence are optional

It ships with a headline only. To add more, put <p class="dbn_eyebrow"> before it or <p class="dbn_text"> after it in .dbn_copy (eyebrow and text in React).

Variations.

  • Cloth — the default: strength 1, travel 2.4, scrub 0.6
  • Rubber — data-au-strength="2.2" for a big, wobbly bend on every flick
  • Flat drift — data-au-strength="0" for a plain depth parallax
  • Slow field — data-au-travel="1.6" and --dbn-length: 300vh
  • Locked — data-au-scrub="0" so the field and bend follow the scroll exactly

Where it fits.

  • Portfolio intros — a headline with the work floating past it
  • Photo series and zines — a whole set in one scroll
  • Collection launches — products drifting past the collection name
  • Event recaps — the night's photos in one pinned scene

Frequently asked.

Scroll faster: the bend follows speed, not position. It's also off with reduced motion or data-au-strength="0".

That's the fallback: three.js isn't loaded or WebGL isn't available.

No. They're drawn on a canvas. The <img> list stays in the page for screen readers only.

Yes. It listens to ScrollTrigger, so Lenis or any scroller that updates ScrollTrigger works. Smooth scrolling also makes the bend smoother.

Related components.

NewPro

Arc Collage Hero

Scroll

Pro

Rising Card on Scroll

Scroll

Pro

Outline Paint Reveal

Scroll