Repository navigation
Conversation
Standalone static page in playground/sneaker showing Lenis driving a product-launch style site: pinned exploded view, vertical-to-horizontal colorway track, word-by-word reveal, velocity-reactive marquees and scroll-linked parallax, all read from lenis.scroll in a single RAF loop. Loads lenis@1.3.26 from jsDelivr (with SRI) so it opens without a build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@Dvi-Rayal is attempting to deploy a commit to the Darkroom Team on Vercel. A member of the Team first needs to authorize it. |
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.
What
Adds
playground/sneaker/, a standalone static demo of Lenis driving a product-launch style page (a fictional sneaker brand, "KODO Pulse 01"). It's three files (index.html,style.css,main.js) with no build step and no image assets. The sneaker is an inline SVG built inmain.js, so it can be recoloured through CSS custom properties.Why
The existing playground pages test individual features one at a time. This one shows the patterns people actually build on top of Lenis, all working together in one realistic page:
position: stickysection where scroll progress separates the shoe's SVG layers and steps through a spec list.lenis.velocity/lenis.direction.--hp), and a nav that hides on scroll down.anchors: truefor in-page links,lenis.stop()/start()around the intro, andlenis.scrollTo()for "back to top", the bag button and keyboard focus inside the horizontal track.Every scroll-linked effect reads
lenis.scrollinside a single RAF loop. Section offsets are cached on resize, so the loop doesn't trigger layout reads.Notes for reviewers
lenis@1.3.26is loaded from jsDelivr with SRI hashes, so the page opens without a build. The otherstatic.htmldemos point at../../dist/lenis.min.js. I can switch to that if you'd rather it exercise the local build.playground/sneaker/index.htmldirectly or serve the folder.respectReducedMotiondefault handles scrolling. Focus moves to the anchor target, and tabbing into an off-screen colorway card scrolls it into view.mainusesoverflow-x: cliprather thanhidden(onbodyit gets propagated to the viewport), so sticky keeps working and mobile Chrome doesn't widen the layout viewport.biome check playground/sneakerpasses. Manually tested in Chromium at 1280×800, 758×960 and 375×812, with no console errors and no horizontal overflow at any scroll depth.🤖 Generated with Claude Code