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
VaultScrollShape Mask Reveal
Tilted Word MarqueeBrowse all 182Rising Fill Button
  • 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

Shape Mask Reveal

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.

  • Each stage holds for one screen of scroll while its tilted picture card opens or closes through a shape, scrubbed to the scroll
  • Five shapes: circle, oval, rectangle, blob and a custom pair of clip-path polygons
  • Two modes: in opens the card from nothing, out closes it away
  • Nine directions for the circle, oval, rectangle and blob: the centre, each edge and each corner
  • Edge directions start 25% outside the card, so round shapes sweep in instead of popping out of a corner
  • A big muted two-line headline sits behind each card, with one bright word
  • Respects prefers-reduced-motion: no masks, every card shows whole and the stages become plain screens

How to get it right.

Pick the direction from the picture

Open towards the subject. A circle from the centre suits a centred subject; a rectangle from the left suits a picture that reads left to right.

Mix in and out

Alternating opening and closing stages keeps a long gallery from feeling like the same trick five times.

Keep custom polygons matched

A custom shape tweens point by point, so data-smk-from and data-smk-to need the same number of points in the same order. The demo's slit goes from a thin slanted band to the full card, both four points.

Let the headline breathe

The card covers the middle of the headline on purpose. Keep the lines short, and put the bright word where it peeks out beside the card.

Labels and captions are optional

It ships without them. Inside a .smk_stage, add <p class="smk_label"><span class="smk_number">01</span> Your label</p> for the top-left corner and <p class="smk_caption"> for the bottom-left. In React, pass label and caption on a stage.

Variations.

  • Locked to the scroll — data-au-scrub="0"
  • Corner wipe — data-smk-shape="rectangle" with data-smk-toward="top-right"
  • Oval from below — data-smk-shape="oval" with data-smk-toward="bottom"
  • Diamond — data-smk-shape="custom", from polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%) to polygon(50% -50%, 150% 50%, 50% 150%, -50% 50%)
  • Your palette — override --smk-bg, --smk-fg, --smk-muted and --smk-accent on the gallery

Where it fits.

  • Portfolios — one project per stage
  • Editorial — chapter openers in a long read
  • Product launches — feature shots with a punchy line each
  • Travel and property — one place per screen

Frequently asked.

Copy a [data-smk-track] section and set its data-smk-shape, data-smk-mode and data-smk-toward. The script finds every track inside the gallery.

Yes. A gallery with a single track works; the root just needs at least one.

Each track is twice the screen height with a sticky stage inside, so the stage holds for one screen of scroll while the mask runs.

Yes. The clip-path goes on the [data-smk-card] element, so anything inside it is masked: a video, a gradient, text.

No. It scrubs on 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