Repository navigation
feat : added 3 components, sticky-grid, clipped-grid and slider-anima… - #53
Merged
Merged
Conversation
✅ Deploy Preview for zepaui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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.
Component Name
slider-animation,clipped-gridandsticky-grid— one animation and two grid sections.Description
slider-animation(animations) — a vertical scroll-snap rail in 2000px of perspective. Each card turns from −40° on both X and Y, squares up flat as it snaps to centre, then turns away, while the caption drifts on its own track in Y and Z. Ported from a Webflow project.clipped-grid(grid-sections) — a video stage cut by a seven-point polygon: chamfered at the top-right, with a step bitten out of the bottom-left that the floating tab rail sits inside, so the controls read as part of the frame rather than something dropped on it. Switching a tab crossfades the clip and replays the glass card over it.sticky-grid(grid-sections) — a sticky media frame beside a column of scrolling steps. An IntersectionObserver picks the active step; the incoming clip resolves rather than fades, with blur and contrast falling away as it settles back from a slight overscale, and the copy rises in on a stagger.Preview
public/previews/animations/slider-animation/preview.mov— 0.86 MB, 1280×788 @ 30fpspublic/previews/grid-sections/clipped-grid/preview.mov— 0.29 MB, 1280×764 @ 30fpspublic/previews/grid-sections/sticky-grid/preview.mov— 0.58 MB, 1280×764 @ 30fpsCompressed from 155.27 MB of raw 60fps capture, SSIM 0.989 / 0.992 / 0.992 against a CRF-12 reference.
Dependencies Added
None. All three ship
dependencies: [].Two of them dropped what their source leaned on:
clipped-gridandsticky-gridcame from a codebase usingframer-motion,lucide-reactandreact-router-dom. Every component ingrid-sectionsships with no dependencies, so the crossfades are CSS, the icons are inline SVG, and the links are plain anchors.Notes
Each port needed its source reading rather than copying:
slider-animation's animation isn't in its CSS. Webflow keeps interactions as an IX2 data blob, so the keyframes were read out of the exportedwebflow.js— oneSCROLLING_IN_VIEWevent on.sectiondriving its children. Itssmoothing: 86is not an easing curve either: tracing the engine gives a per-frame lerp ofmax(1 − smoothing/100, 0.01)= 0.14, which is most of what makes the motion feel right.sticky-grid's detection was knife-edge. The reference pairsthreshold: 0.7with an 85vh step and a 60vh window, so the deepest coverage possible is 0.706 — a step registers within about 4.5px of scroll, less than one wheel tick, and gets skipped. Same window, but the active step is now whichever covers it most.sticky-gridwere not carried over: its observer listedactiveIndexas a dependency and so rebuilt itself on every change, and itsclearTimeoutsat inside aforEachcallback, returning from the callback rather than the effect, so the timer never cleared. The pixelate replay is keyed to a class instead, which removes the timer entirely.All three own their scroll container and are embed-safe — no
position: fixed, nowindow.innerWidth/innerHeight, nodocument.body, every class and keyframe prefixed.Checklist
meta.tsdemo.tsxpublic/previews/{category}/{slug}/preview.mov)npm run build:registrynpm run lintnpm run testconsole.log