Built for Motion
Log in

GSAP Pinned Scroll Mosaic That Assembles a Cut-Out from 3D Tiles

proOn ScrollMouse MoveOn HoverOn Click
Loading preview

Overview

A pinned gallery section: ninety-six tiles scattered in 3D fly together into a cut-out model as you scroll, the headline scrambles in word by word, and once it holds the tiles shy away from the cursor and a click shatters them into the next look.

A mid-page section for an art gallery or creative studio, in gallery white with one bold cobalt. It pins, and as you scroll the cut-out builds itself: an 8 × 12 grid of tiles, each showing its own slice of the photo, starts scattered and tumbling in 3D and flies into place with a random stagger. Because the photo is a transparent cut-out, tiles over empty space stay invisible, so the figure's outline assembles rather than a rectangle.

Details

Category
Scroll
Interaction
On Scroll + Mouse Move + On Hover + On Click
Trigger
On Scroll
Languages
React, TypeScript, plain CSS

(01)Keep exploring

All 150 components

Built with the same techniques

(02)FAQ

GSAP Pinned Scroll Mosaic That Assembles a Cut-Out from 3D Tiles — FAQ

01What do I need to install?

npm install gsap @gsap/react. ScrollTrigger and ScrambleTextPlugin ship with gsap. The styles are plain CSS, so it doesn't need Tailwind, and the tiles are plain elements with CSS backgrounds, so there's no canvas or WebGL.

02Which fonts does it use?

Anton for the headline as --font-anton and Space Grotesk for everything else as --font-space-grotesk. The example loads both with next/font; each falls back to a system face.

03What images work best?

Transparent cut-outs (WebP or PNG) of a full-length figure, passed as looks with their width and height. Tiles over the transparent areas stay invisible, which is what makes the figure's outline assemble. Pass two or more looks to enable the shatter; the next one is preloaded so it reassembles cleanly.

04Can I change the number of tiles or the pin length?

Yes. columns and rows set the grid (8 × 12 by default; more tiles means finer pieces but more elements to animate), and pinLength sets how many screen heights the assembly takes to scroll through.

05Does it work on touch screens?

Yes. The scroll assembly and the tap-to-shatter work everywhere; the cursor repel and the cursor label only run with a mouse.

06What happens with reduced motion?

Nothing pins or flies: the figure and copy simply fade in, the headline is shown as set, and clicking Next look cross-fades to the next figure.