Page Curl, animated React component
Grab the corner of a page and peel it back. The fold is computed live from your pointer, the flap shows the paper's back, and whatever you put underneath is revealed.
- Pro
- Cards
- Spring
Play with it
Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.
You found it20% off, today onlyPEEL20
Letter No. 7Peel back the corner.Grab the bottom-right corner and drag it across. The fold follows your hand, and the paper behind shows through.
— turn overProps
| Prop | Type | Default | What it does |
|---|---|---|---|
| width | number | 400 | Page width in px. |
| height | number | 260 | Page height in px. |
| front | ReactNode | sample letter | Content of the page you peel. |
| back | ReactNode | hidden discount card | What is revealed underneath the page. |
| autoplay | boolean | false | Peeks the corner by itself until someone grabs it. |