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
VaultScrollScattering Card Pile
Staggered Card RevealsBrowse all 182Scramble Text Effect
  • 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

Scattering Card Pile

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
  • ScrollTrigger

Setup

npm i gsapregisterPlugin(ScrollTrigger)

More like this

  • Card
  • Pinned
  • Reveal
  • ScrollTrigger
  • Sticky

Features.

  • A headline buried under a tilted, enlarged pile of cards on a sticky stage
  • Scrolling scatters every card straight out along its own ray to a slot clear of the text
  • Cards with further to travel arrive later, so the pile opens up rather than exploding
  • Scrolling back pulls the pile together again
  • Ships with photo cards; a card can hold anything else, such as a stat or a mini chart
  • Phones shrink the cards, re-aim some and drop the ones you mark
  • Respects prefers-reduced-motion: the cards simply sit at rest around the text

How to get it right.

Aim the cards round the text

Each card has one compass angle (0 above, 90 right, 180 below, 270 left). Spread them all the way round and the slots fill the stage evenly. Two cards on nearly the same angle will land on top of each other.

Size cards in px at 16px text

data-scl-w and data-scl-h are px at a 16px font size and scale with it. Keep them between about 150 and 300 so six or seven cards fit round a large headline on a laptop.

Plan the phone version

On phones the cards shrink to 55%. Give the cards you keep a data-scl-phone-angle so they sit above and below the text, and add data-scl-phone="false" to the rest. Four cards is plenty.

Let the headline be the payoff

The headline is static; the uncovering is the reveal. Keep it short and big.

Adding a sub line, stat or chart cards

It ships with five photo cards and a headline. For a line of copy, put <p class="scl_sub"> after the headline inside [data-scl-centre]. For a stat card, use class="scl_card scl_card--stat" with .scl_card-label, .scl_card-value and .scl_card-sub; for a chart card, scl_card--chart with an .scl_chart SVG. The styles are still in code.css. In React, pass sub, and className plus children on a card.

Variations.

  • Gentle pile — data-au-pile-scale="1.2" for a smaller, tidier pile
  • Long scatter — data-au-length="300" to make the cards drift out slowly
  • Accent chart — the chart line already uses --scl-accent; set it to any colour

Where it fits.

  • About or brand pages — a statement surrounded by moments
  • Product launches — the name under a pile of features and numbers
  • Portfolios — a studio line with project shots scattering out
  • Event pages — the date and place under photos from last year

Frequently asked.

Add an element with data-scl-card, an angle, a size and a tilt inside .scl_layer. Pictures go in as <img class="scl_image">; anything else just sits in the card.

Cards with data-scl-phone="false" are hidden below 768px. Remove the attribute to keep them.

Cards are pushed out until they clear the headline by 64px (at 16px text), but they're also kept inside the stage. On short or narrow screens the stage can be too small; drop a card on phones or make it smaller.

Yes. Override --scl-bg, --scl-fg, --scl-muted, --scl-surface, --scl-border and --scl-accent on the section.

No. It scrubs off the scroll position, so it works with native scrolling and with any smooth-scroll library that updates ScrollTrigger.

Related components.

NewPro

Arc Collage Hero

Scroll

Pro

Rising Card on Scroll

Scroll

Pro

Outline Paint Reveal

Scroll