PRO

Swing In Work Grid

A work index where each row swings into place. Cards start a thousand pixels low and rotated sixty degrees, mirrored left against right, so a row reads as two panels hinging shut. The row fires once when it reaches mid viewport and the pair lands on a quarter second stagger, which keeps the second card still turning as the first settles. GSAP ScrollTrigger with Lenis.

Component
Install
npx shadcn@latest add https://ui.aryank.space/r/swing-in-work-grid.json

Installs from ui.aryank.space. To add it by hand, copy the files in Usage below, or register the @compronents namespace via the docs.

Files

API
PropTypeDefaultDescription
projectsWorkProject[]Ten BLANK projectsName, description, image, and route. Projects are paired into rows automatically.
heading / footerLeft / footerRightstringBLANK copyPage heading and the two footer lines.
embeddedbooleantrueOwn the scroll container so it fits a bounded box. Set false to drive it from the window scroll.
Customize
projectstext

Project names, descriptions, images, and routes.

Dependencies
gsaplenis