Use it near the end of a product landing page. It takes a photo with alt text, headline sentences, tab and form texts, a panel number and run size, and onReserve, which receives a valid email. Variants corner, strip and sheet; sheet needs no photo.
When not to use
It is for one email step with a numbered reservation. For a newsletter with a list of past issues use Portero.
Use Peel for a waitlist or reservation step of a physical product: the section is a new screen
under its protective film, the pull tab is the button, and what the peel uncovers is the email
step drawn as the display's own on-screen menu.
The demo photograph stays on this site and is not installed.
Prop
Type
Ratio
Transparent
Max weight
Notes
image.src
string
16:9 or wider
no
500 KB
A bright, busy photograph reads best under the milky film; the copy sits on its top left corner.
focus sets the picture's focal point (0..1) on wide and narrow screens. Without an image, with
sheet, or if the image fails to load, the film lies on the flat panel colour.
Every colour is a prop and takes any CSS colour: hex, RGB, HSL or OKLCH. tab is the pull tab and
the submit, film the film's tint, legend its print, shadow every shadow it throws and the
second sentence, bezel the frame, osd the menu surface, panel the screen without a picture.
The tab is a real button described by the film's legend; after the peel focus moves into the
menu, a labelled form with a polite status, and "Put the film back" returns to the tab.
The film, bubbles and shadows are drawn on a canvas hidden from assistive technology; the copy
stays real text and the picture's alt is read.
stack: the copy on the top left, the tab at the lower corner. On touch screens a tap on the tab
peels the film and a sideways drag peels it by hand; vertical scroll is never blocked.
The film rests a few millimetres lifted at the corner with no bubbles or contact patch; the tab
cross-fades film and menu in place, without the peel travelling.
ogl loads the first time the section nears the viewport; a CSS film over the picture stands in
until then.
One rAF loop that stops off screen or in a hidden tab.
Own code is checked against the sections budget (pnpm size).
Technical sheet
Motion
calm
260 ms · bounce 0
lively
400 ms · bounce 0.3
playful
540 ms · bounce 0.45
Main spring of each temperament. Set it with the temperament prop or MotionKitProvider; the default is lively.
Size
Not measured yet · budget 16.0 kB gzip
Component and MotionKit helpers; excludes react, react-dom.
Dependencies
motion
ogl@1.0.11
Triggers
—
Reduced motion
The film rests a few millimetres lifted at the corner with no bubbles or contact patch; the tab cross-fades film and menu in place, without the peel travelling.
Keyboard
No keyboard interaction of its own.
Browsers
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)