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
VaultScrollTile Fly-Through
Bead Line TimelineBrowse all 1823D Tilt Cards
  • 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

Tile Fly-Through

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

  • three

Setup

npm i gsapregisterPlugin(three)

More like this

  • Pinned
  • Reveal
  • Sticky
  • 3D
  • Canvas
  • WebGL

Features.

  • A picture rebuilt from thousands of small painted tiles, each floating at its own depth so they line up into one image
  • Tile size follows the picture's brightness, like a halftone, and each tile is tinted toward the picture's colour there
  • On load the picture fills in from the bottom up, tiles rising into place
  • Scroll and the camera flies forward: the picture breaks apart, most tiles dissolve, the rest grow and stream past in a tunnel
  • Featured cards glide toward you down the centre, each with a soft glow, repeating as long as you scroll
  • Mouse sway, faint halo tiles at the silhouette and drifting motes keep it alive while you look
  • One instanced mesh and one tile atlas; stops drawing off screen
  • Without WebGL the hero picture shows on its own
  • Respects prefers-reduced-motion: no intro, motes or sway, and the camera follows the scroll without easing

How to get it right.

Load three.js first

The script reads window.THREE. Load three before code.js. No GSAP needed; it measures the section's scroll itself, so native scroll and Lenis both work.

Pick a picture with strong shapes

The hero is cut into 157 rows of tiles (110 on small screens) and brightness becomes tile size, so bold light and dark areas read best: a bright subject on a dark ground. A portrait-shaped picture keeps the tile count sane. Transparent pixels (alpha under 0.08) get no tiles, so a cut-out on transparency gives a clean silhouette with halo tiles round its edge.

Build the atlas to the layout

The atlas is 2048 × 1920: 8 columns × 10 rows of 256 × 192 tiles, and the first 78 are used. Give a half-size copy (1024 × 960) as data-src-small for phones. Busy, colourful tiles make the richest cloud.

Give it room to scroll

The section is --tfl-length tall (600vh by default) with a sticky stage. Every scrolled px moves the camera data-au-speed units; the picture has broken apart after data-au-break units and the first card arrives at 420. Don't put it inside a parent with overflow: hidden.

Retheme with variables

--tfl-bg is the page, the fog far tiles sink into and the vignettes. --tfl-glow lights the cards. Both are read once at init.

Variations.

  • Drift in — the default: speed 0.4, break 320, tint 0.5, glow 0.55
  • Shatter — data-au-break="140" so the picture flies apart as soon as you scroll
  • Rush — data-au-speed="0.8" with --tfl-length: 400vh for a quick, dense flight
  • True colours — data-au-tint="0": tiles keep their own colours and only their sizes draw the picture
  • No glow — data-au-glow="0" for plain cards in the lane

Where it fits.

  • Portfolio or studio home — your work literally makes up the picture
  • Collection launches — hundreds of product shots forming the hero, then the highlights
  • Archive intros — a way into a large body of images
  • Event or exhibition pages — the poster made of everything on show

Frequently asked.

That's the fallback. Check that three.js loads before the script (after 10 seconds the console says [oomph] Tile Flythrough: three.js not found), that the browser has WebGL, and that every picture loads; a failed one logs [oomph] Tile Flythrough: could not load ….

Use a picture with more contrast, or raise data-au-tint so tiles take on more of the picture's colour at the start.

The tunnel and the card lane never run out, but the flight follows the section's scroll, so it ends when the section does. Make --tfl-length longer for a longer flight.

It's one instanced mesh of several thousand tiles plus 24 cards, drawn every frame while on screen. Keep one per page; phones get fewer rows and a half-size atlas.

Related components.

NewPro

Arc Collage Hero

Scroll

Pro

Rising Card on Scroll

Scroll

Pro

Outline Paint Reveal

Scroll