Career Timeline
A vertical line that draws itself as you scroll with a glowing head; milestone nodes pop on springs and cards slide in from alternating sides.
Try it: Scroll — the line draws and milestones pop in.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/career-timeline.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/career-timeline. You can also copy the source into components/ui/career-timeline.tsx (view on GitHub).
Usage
import { CareerTimeline } from '@/components/ui/career-timeline'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
entries | TimelineEntry[] | 5 sample roles | { period, role, org, summary, tags? } |
scrollContainer | React.RefObject<HTMLElement | null> | window | Scroll element when the component lives inside its own scroller. |
titleAs | 'h2' | 'h3' | 'h4' | 'h3' | Heading element for item titles, so the page outline stays valid. |
className | string | — | Extra classes merged onto the root. |
Dependencies
motion
Related Portfolio components
- Skills Marquee
Two counter-rotating rails of skill pills. Hover or keyboard focus pauses, a visible Pause button covers touch and WCAG 2.2.2, and reduced motion becomes a calm wrapped list.
- Before / After Slider
Drag, tap or use the arrow keys to wipe between two states. The knob stretches while held, the reveal edge glows and the handle sweeps once on first view.
- Skill Meters
Radial gauges that sweep to their value on scroll-in: glowing gradient arc, a comet dot on the tip and a live count-up. Staggered, replayable and exposed as ARIA meters.
- Case Study Scroll
Problem → Process → Result as a scroll-driven story: a sticky rail fills as you read and lights the current chapter while chapters rise in with staggered key figures.
- Impact Stats
Odometer counters: every digit is a reel spinning to its value on its own spring when the row scrolls in — right-most digits settle last, like a mechanical counter.
- Project Filter Gallery
Category chips share a sliding pill (layout animation) while the grid reflows: survivors glide to new cells, newcomers bloom in blur-to-sharp. Announces the result count.