
Clip Path Slider
Carousels
A scroll-linked reveal where a centred clip-path panel expands to fill the screen while corner blocks push out, grid lines dissolve, and keyword pills converge.
Grid Scale turns a framed centre panel into the whole screen. As the visitor scrolls, the panel's clip-path opens out to fullscreen and the statement inside takes over.
Use Grid Scale as a pinned intro or statement section: a short teaser line sits in a framed centre panel, four coloured corner boxes and thin grid lines mark the frame, and keyword pills are scattered around it. As the visitor scrolls, the teaser fades, the panel opens to fullscreen, the corner boxes fly out to the screen corners, the grid lines slide outward and shrink away, and the pills drift to the centre and fade while the main statement fades in. The page job is a single moment of focus on one statement.
The main risk is scroll length and fixed content. The section is 400vh tall with a sticky full-screen stage, so it adds a long scroll, and the teaser, statement and sixteen keyword pills are hard-coded in the component; the props only set the background colour, panel colour and pill stagger.
import GridScale from '@/components/effects/grid-scale' const page = () => { return ( <> <GridScale/> </> )} export default pageA studio or SaaS homepage can use Grid Scale between the hero and the main content: the visitor scrolls into a framed teaser surrounded by keyword pills naming what the team does, and as they keep scrolling the frame opens to fullscreen and the pills gather into the centre behind the brand statement. The outcome is emphasis: the positioning line is hard to scroll past.
The timelines are scrubbed by GSAP ScrollTrigger and reverted on unmount. They animate clip-path, opacity, scale and the top/left offsets of absolutely positioned elements inside the sticky stage, so nothing outside the section shifts. The component targets its elements by shared class names, so use one instance per page.
The statement is a real h1 and the teaser a p, but the h1 starts at opacity 0 and only becomes visible as the visitor scrolls, and the pills are decorative text. On screens narrower than 640px the same pinned sequence runs with a larger starting panel and smaller corner-box offsets; with reduced motion the eases turn linear and the pills fade in place, while the panel expansion still scrubs with scroll.
| Prop | Type | Default | Description |
|---|---|---|---|
bgColor | color | #242424 | Background color of the section. |
panelColor | color | #ffffff | Background color of the expanding center panel. |
convergeStagger | number | 0.7 | Total stagger spread (seconds) as the floating keyword pills converge to center. |
Rather than fading items in, it choreographs a whole pinned scene to scroll: a framed centre panel opens to fullscreen while corner boxes fly out, grid lines collapse and keyword pills converge and fade, ending on a single statement. Use it when one message deserves a full-screen beat as the visitor reaches it.
Below 640px it keeps the same pinned sequence but starts from a larger centre panel, uses smaller corner-box offsets and moves one pill to a mobile position; text sizes switch to viewport-based values. With reduced motion the eases turn linear and the keyword pills fade in place, but the panel expansion still scrubs with scroll.
Scroll the full 400vh at desktop, tablet and phone widths to check the pills do not cover the statement and the text wraps cleanly, confirm the sections before and after sit correctly around the sticky stage, and make sure only one instance is on the page. Check the reduced-motion version too.
A short teaser question, one or two lines of statement that answer it, and a set of single-word keywords that relate to the message. Replace the built-in copy and pills in the source with your own, keeping the keywords short so the pills stay readable.
Avoid it on task-focused pages where 400vh of pinned scroll gets in the way, when you need more than one instance on a page, or when the message is not strong enough to carry a full-screen moment. Skip it where a static headline communicates the same thing.
Need a custom effect? Tell us what to create.