Outline Depth Statement
Layer solid and outlined words that move at different speeds as you scroll.
- Dependencies
- No extra packages
- Size
- 180 lines
- Controls
- 9 controls
Installation
CLI · shadcn registry
npx shadcn@latest add https://ui.onycx.dev/r/outline-depth-statement.json1 · Dependencies
None beyond React and Tailwind.
2 · Copy the source
components/onycx/outline-depth-statement.tsx
Requires React 19 and Tailwind CSS v4. Copy the source from the outline-depth-statement.tsx tab after tweaking: your values are baked in as the new defaults. Exported image examples use portable sample artwork. Replace it with your own media as needed.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | "The Philosophy" | 12px uppercase label, 0.3em tracking, in the accent colour. |
| top / bottom | string | "Quiet" / "Luxury" | Solid word and outlined word; read as one heading. |
| body | string | — | Centred paragraph (max 42rem) under the words; empty hides it. |
| color / accent / muted / background | string | "#EEE4D6" / "#AD7D56" / "#998A79" / "#000000" | Solid fill, outline stroke and eyebrow, paragraph, section background. |
| topSpeed / bottomSpeed | number | 0.18 / 0.42 | Drift of each word: translateY = −progress × speed × 100px, progress −1 → 1 across the viewport. |