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
VaultScrollDrop-In Photo Cards
Pinned Wipe StepsBrowse all 182Tilted Parallax 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

Drop-In Photo Cards

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

Features.

  • A loose three-column wall of prints, the middle column dropped lower than the others so the rows look hand-pinned
  • Each print is a card: picture on top, a one-line title and a tag below, every card the same height
  • Each print picks its own random resting angle inside its range on every load, so no two visits look the same
  • The first time a print scrolls into view it drops onto that angle: falling in from above, slightly larger, spun past its angle and fading in, with a small overshoot
  • Prints that arrive together land a tenth of a second apart
  • Once landed, hover (mouse only) or keyboard focus swings a print to a fresh random angle and deepens its shadow; leaving swings it back to where it landed
  • Two columns below 768px, one below 480px; the tilts stay
  • Respects prefers-reduced-motion: the prints sit upright and nothing moves

How to get it right.

Give each print a range

data-tdr-min and data-tdr-max set how far a print may lean. Mixing narrow (±5°) and wide (±15°) ranges is what makes the wall look loose rather than uniformly messy.

Keep the offsets in margins

The columns are staggered with margin-top. GSAP writes transform on every print, so a CSS transform for the offset would be overwritten.

Mind the drop height

data-au-lift is in em. Big values (8em+) make prints fall from well above their row, which reads as dramatic on a sparse wall and busy on a packed one.

Keep the prints focusable

Each print has tabindex="0" so keyboard users get the same swing on focus. Remove it only if the prints become links, which are focusable anyway.

Title and tag

Each print's <figcaption class="tdr_caption"> holds .tdr_title (one line, cut with an ellipsis so every card stays the same height) and .tdr_meta, shown as a tag. Delete the figcaption for picture-only prints. In React, pass title and meta on a print.

Variations.

  • Gentle — data-au-spin="6" and data-au-lift="1.5"
  • Tossed — data-au-spin="40" and data-au-lift="8"
  • Straighter wall — ranges of -3 / 3 on every print
  • Your palette — override --tdr-bg, --tdr-card, --tdr-shadow and friends on the section

Where it fits.

  • Photography and moodboards — a contact-sheet feel for a shoot
  • Event recaps — snapshots pinned to a wall
  • Testimonials — portrait cards with names
  • Print pages — a loose wall of work in progress

Frequently asked.

The resting angle is picked at random inside each print's range when the script starts. Set data-tdr-min and data-tdr-max to the same number to fix a print's angle.

No. Each print drops once per page load and then stays. Hover and focus keep working.

No. The hover swing only runs on devices with a mouse or trackpad. Touch screens get the drop-in, and focus still swings a print.

Yes. Any number of [data-tdr-print] items works; the grid keeps three columns and the column offsets repeat every three.

No. It reacts to 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