Add an image peel that curls a sticker off as you scroll - #40
Closed
radiumcoders wants to merge 5 commits into
Closed
radiumcoders wants to merge 5 commits into
radiumcoders wants to merge 5 commits into
Conversation
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>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Cloudflare preview is ready.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
ImagePeelfor React and Svelteside:top-left,top-right,bottom-left,bottom-right(defaultbottom-right)amount:0–1, how far the sheet lifts by the end of the scroll (1clears it, anything lower parks the curl)#FFFFFFsrcfor the image. The docs preview starts with the orc sticker and lets you insert another file or paste a URLThe 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-peelfor 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.