Skip to content

Add an image peel that curls a sticker off as you scroll - #40

Closed
radiumcoders wants to merge 5 commits into
mainfrom
cursor/image-peel-eaca
Closed

radiumcoders wants to merge 5 commits into
mainfrom
cursor/image-peel-eaca

Conversation

@radiumcoders

@radiumcoders radiumcoders commented Sep 24, 2026 •

Copy link
Copy Markdown
Owner

A sticker sticks to the page and peels away as you scroll, from a corner. The back of the curl is pure white, and there is no shadow behind the sticker. Drop in any image — transparent art keeps its die-cut shape.

What you get

  • ImagePeel for React and Svelte
  • side: top-left, top-right, bottom-left, bottom-right (default bottom-right)
  • amount: 0–1, how far the sheet lifts by the end of the scroll (1 clears it, anything lower parks the curl)
  • The back of the sheet is #FFFFFF
  • src for the image. The docs preview starts with the orc sticker and lets you insert another file or paste a URL
  • Children are the surface underneath

The corner lift takes its cue from Sticker Peel on React Bits. That one peels on hover. This one peels as you scroll. A local copy of the React Bits component is in tmp-demos/sticker-peel for reference. It is not part of the registry.

The preview is on the Image Peel docs page. Scroll inside the frame, or use Show peel.

Open in Web Open in Cursor 

The sheet sticks to the nearest scroller, lifts from a chosen edge, and stops after the amount you set. Transparent art keeps its die-cut shape, and the docs preview can swap in another image.

Co-authored-by: Jay Sharma <radiumcoders@gmail.com>
@coderabbitai

coderabbitai Bot commented Sep 24, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Cloudflare preview is ready.

Preview https://pr-40-23rd-dev.radiumcoders.workers.dev
This commit https://9e9fda31-23rd-dev.radiumcoders.workers.dev

Production (23rd.dev) is unchanged. This preview URL stays the same as you push to this PR.

Corner sides curl on a diagonal grid, and the paper back switches with light and dark.

Co-authored-by: Jay Sharma <radiumcoders@gmail.com>
The diagonal cylinder uses the same radius as a straight peel, on a finer grid.

Co-authored-by: Jay Sharma <radiumcoders@gmail.com>
The curl shows a flat white underside, with no blurred shadow behind the sheet.

Co-authored-by: Jay Sharma <radiumcoders@gmail.com>
Edge sides are gone. A local React Bits copy sits in tmp-demos as inspiration, linked from the docs.

Co-authored-by: Jay Sharma <radiumcoders@gmail.com>

This branch was successfully deployed

1 active deployment
preview — 7bc75dff Deployed Sep 24, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants