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
VaultGallery & imagesTorn Edge Reveal
Gooey Toolbar TooltipBrowse all 182Two-Level Drawer Menu
  • 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

Torn Edge 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
  • CustomEase

Setup

npm i gsapregisterPlugin(ScrollTrigger, CustomEase)

More like this

  • Reveal
  • ScrollTrigger

Features.

  • Every picture tears open from its middle the first time it scrolls in: a circle with a rough, torn edge grows until it clears every corner
  • Each picture gets its own tear shape, and the shape only grows; it never crawls or flickers as it opens
  • The edge starts clean and roughens over the first third of the reveal
  • Scroll back above the start line and the picture closes on the same ease
  • Pictures that cross the line together open in page order, 0.12s apart
  • One picture can follow the scrollbar instead (data-trv-scrub="true"), with its own rougher edge
  • Once a picture is fully open its clip is removed, so it is a plain <img> again
  • Respects prefers-reduced-motion: nothing is built and every picture simply shows

How to get it right.

Give every picture its box before it loads

The tear is measured from the picture's size. Keep width and height on each <img> and an aspect-ratio or fixed height in CSS, so the box is right before the file arrives. Pictures are measured again when they load and after a resize.

Tune roughness and grain together

data-au-roughness is how far the edge wanders, in pixels; data-au-grain is how fine the notches are. Big roughness with low grain reads as torn card; small roughness with high grain reads as frayed paper.

Open the cover straight away

The cover sits at the top, so it's already above the top 85% line at load and tears open as the page appears. If you add an intro, keep it short: .trv_intro is 70% of the screen and pulled up 6em for this reason.

Adding text

It ships as pictures only. Add .trv_intro (.trv_label, .trv_title, .trv_facts), .trv_text blocks between the pictures and a <figcaption class="trv_label"> on the wide one, or pass eyebrow, title, facts, blocks and wide.caption in React.

Use scrub for one picture, not all

A scrubbed picture tears as fast as you scroll. One in a page is a nice change of pace; on every picture it reads as noise.

Variations.

  • Slow tear — data-au-duration="2.4"
  • Clean circle — data-au-roughness="0"
  • Frayed — data-au-roughness="40" with data-au-grain="0.009"
  • Scrubbed — data-trv-scrub="true" on any picture
  • Late start — data-au-start="top 60%"

Where it fits.

  • Case studies — architecture, interiors, product photography
  • Editorial — photo essays and long reads
  • Portfolios — a project page where each image earns a moment
  • Launch pages — a cover image that tears open as the page loads

Frequently asked.

Yes. Any <img data-trv-image> inside a [data-au-torn-reveal] root tears; the layout classes are only for this demo.

Yes. data-trv-duration, data-trv-roughness and data-trv-grain on an image beat the root's values. The scrubbed picture in the demo uses 140 and 0.002.

It clips whichever element carries data-trv-image, so a <video> or a <div> with a background image works too. Give it a fixed size: only image load events trigger a re-measure.

Leaving back above the start line runs the tear in reverse from wherever it is. Scroll down again and it opens again.

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

Related components.

Pro

File Drawer Cards

Hover

Pro

Capsule Image Hero

Click

Pro

Depth Fly-Through Hero

Load