Toggle Sidebar B
AppearanceLight & dark mode D

Sticker Peel

Sticker corner lift + peel interaction using 3D transform and shadow depth.

Default

Hover the sticker to peel it back, press to peel further, and drag it around. The sticker is absolutely positioned, so give its parent a position and a size: the parent is also the drag bounds.

Dark previewReplay previewOpen in new tab

Try dragging it!

Customize

Peel Direction0°
Rotate0°
Width200px
Peel Hover %30%
Peel Active %40%
Lighting Intensity0.1
Shadow Intensity0.5

API Reference

StickerPeel

PropTypeDefaultDescription
imageSrcstringrequiredThe source URL for the sticker image.
rotatenumber30The rotation angle in degrees of the sticker image.
peelBackHoverPctnumber30Percentage of peel effect on hover (0-100).
peelBackActivePctnumber40Percentage of peel effect when active/clicked (0-100).
peelDirectionnumber0Direction of the peel effect in degrees (0-360).
peelEasingstring'power3.out'Easing for peel animations.
peelHoverEasingstring'power2.out'Easing for hover transitions.
widthnumber200Width of the sticker in pixels.
shadowIntensitynumber0.6Intensity of the shadow effect (0-1).
lightingIntensitynumber0.1Intensity of the lighting effect (0-1).
initialPositionstring | { x: number, y: number }'center'Initial position of the sticker inside its parent. 'center' leaves it where layout puts it, an object offsets it in pixels.

Accessibility

Keyboard shortcuts and ARIA behavior.

  • Pointer and touch only. The image has an empty alt, so use the sticker for decoration and keep any meaning in surrounding text.