Drawn Path Features
A feature section threaded together by one fat orange stroke. The path sits behind the content on a negative layer and draws itself in exact step with the scroll, so the line arrives at each illustration and card just as that block reaches reading position, and completes on the last row. Stroke dash offset driven by GSAP ScrollTrigger with Lenis.
npx shadcn@latest add https://ui.aryank.space/r/drawn-path-features.jsonInstalls from ui.aryank.space. To add it by hand, copy the files in Usage below, or register the @compronents namespace via the docs.
| Prop | Type | Default | Description |
|---|---|---|---|
| images | [string, string, string, string] | Blob-hosted illustrations | The four illustrations the stroke threads past. |
| cards | [StrokePathCard, StrokePathCard] | Two BLANK feature cards | Heading and body for each of the two text cards. |
| strokeColor / strokeWidth | string / number | #FF5F0A / 200 | Color and thickness of the drawn path. |
| embedded | boolean | true | Own the scroll container so it fits a bounded box. Set false to drive it from the window scroll. |
strokeColor / strokeWidthcolorColor and thickness of the threading stroke.
cardstextThe two feature card headings and bodies.
gsaplenis