← All work
Demo · Interaction design

Sticker Effects — A die-cut vinyl peel playground in the browser

A single-page React demo where a sticker's PNG alpha builds the die-cut outline, curling flap, shading and gloss. Drag it off a product card; three peel styles and live sliders tune the feel.

2026 Maturity: Prototype

Sticker Effects is a small browser demo about one physical gesture: peeling a die-cut vinyl sticker off a card. Its distinguishing choice is that the whole effect is built from a single PNG. The image's alpha channel serves as the outline, the curling flap, the shading and the gloss, with no WebGL and no build step.

A yellow and purple star sticker with a white die cut border, its top corner peeled back along a diagonal fold to show a gray backing, casting a soft shadow.
A corner peel up close: the fold, the backing and the die cut border all come from one image. Sample artwork.
A product card with a star sticker peeling at one corner, an empty dashed drop zone, and a panel of peel style and curl sliders.
The playground: peel the sticker off the product card, drop it on the canvas, and tune the curl, shadow, gloss and wobble live. Sample artwork.

What it does

The page shows a product card with a pizza-slice sticker, a dashed "laptop" drop zone, and a Playground panel. Dragging the sticker lifts it, curls it back from the direction of the pull, casts a contact shadow and slides a highlight across its surface. Releasing it over the zone places it; releasing it elsewhere returns it to the card. The panel switches between three peel styles and exposes sliders for curl intensity, curl tightness, contact shadow, gloss and landing wobble, plus a snap-to-center toggle and a reset button.

The three styles are 3D Curl (a flap folds back along a line perpendicular to the drag), Flat Tilt (the whole sticker rotates in 3D) and Backing (the sticker tilts while a white silhouette stays behind on the card).

How it works

There is no bundler: React 18 loads from a CDN and the component is compiled in the browser, so the page must be served over HTTP. The app owns the layout, where the sticker sits (on the card or in the zone) and the settings the panel edits.

The sticker stacks the same image several times, each with a different filter: a flat layer with an SVG die-cut filter (the alpha is dilated, flooded white and merged under the original), a flap layer turned solid white and overlaid with multiply-blended shade and screen-blended highlight copies, a gloss layer behind a radial-gradient mask, and a separate white silhouette for the Backing style.

Per-frame work bypasses React. Position, lift, peel amount and direction live outside React's state, and an animation loop writes transforms, clip paths and masks straight to the page. Pointer events with pointer capture mean mouse, pen and touch share one code path.

The curl geometry is hand-rolled. A small vector type and a segment-intersection routine split a large bounding box along a fold line at the midpoint of the peel distance. The two resulting polygons become clip paths for the flat part and the flap, and the flap is rotated about the fold with a single 3D rotation whose angle scales with intensity and tightness. In Curl mode the peel amount follows how far the pointer is from the card's center; in Tilt and Backing it follows pointer speed. On release, lift and peel ease back to zero over 380 ms, position animates with an overshooting curve, and a squash-and-stretch wobble plays.

What's notable

  • One asset, every layer. The PNG's alpha drives the die-cut border, flap, fold shadow, crest highlight and backing silhouette, so swapping the image changes the whole effect.
  • Arbitrary-angle curl without WebGL. The fold line follows the drag direction rather than snapping to four edges, using polygon clipping and one 3D rotation.
  • React stays out of the hot path. The animation loop updates the page directly while React renders only layout and controls.
  • Feel is exposed as parameters. Lift, peel, shadow, gloss and wobble are live sliders, which makes the demo a tuning tool as much as a showpiece.

In the demo

The recording runs about 22 seconds. It peels the sticker in 3D Curl and releases it, switches to Flat Tilt and drags, switches to Backing and drags to show the white silhouette left on the card, then returns to 3D Curl, adjusts Curl Tightness and peels again.

State

A prototype from 28 September 2026, MIT licensed. It loads its scripts from a CDN, so it needs a network connection. While recording, dropping the sticker on the laptop zone blanked the page in headless Chromium with a React error, so placement and the landing wobble are not shown in the demo; the recording peels the sticker and returns it to the card instead.