Timeline
A vertical (or alternating) spine of dated entries. Markers, icons, and entry cards are independently styleable. Add .vd-timeline-animated for staggered scroll-reveal, or .vd-timeline-playback to drive reveals from buttons.
Basic Timeline
Project Launched
Initial release with core components, grid system, and theme engine.
Beta Testing
Community feedback collected, accessibility audit completed, benchmarks run.
Design Phase
Design tokens defined, Figma components created, docs site scaffolded.
Concept & Planning
Requirements gathered, architecture decided, technology stack finalized.
Color Variants
Build Passed
All 142 tests passed. Bundle size within budget.
Deprecation Notice
The .vd-card-flat class will be removed in v3.0. Migrate to .vd-card-outlined.
Deploy Failed
CDN purge timed out. Rollback initiated automatically.
Alternating Timeline
Morning Standup
Team synced on sprint goals and blockers for the day.
Code Review
Reviewed pull requests for the new grid system and utilities.
Design Sync
Discussed token naming conventions and dark-mode adjustments.
Ship It
Merged, tagged, and deployed the release to production.
Playback Timeline
Step through reveals with the controls — no scrolling required.
Clone & install
Pull the repo and install dependencies with pnpm.
Run the dev server
Start Vite and open the docs locally.
Make a change
Edit a component and watch HMR update instantly.
Run the gates
Typecheck, lint, unit, and e2e all green.
Open a PR
Push the branch and let the review bot do its pass.
Engine wiring
API Reference
Classes & Attributes
| Class / Attribute | Description |
|---|---|
.vd-timeline | Container. Vertical spine of dated entries. |
.vd-timeline-animated | Opt into staggered scroll-reveal (auto-init). |
.vd-timeline-alternating | Items alternate left/right on desktop. |
.vd-timeline-playback | Step reveals from buttons instead of scroll. |
.vd-timeline-item | A single entry (marker + content). |
.vd-timeline-marker | The dot on the spine. +-lg, +-success/-warning/-danger. |
.vd-timeline-content | Card body: date + title + text. |
data-vd-timeline-prev / -next / -play / -pause | Playback controls (in the timeline's direct parent). |
Composable API (useTimeline)
| Symbol | Description |
|---|---|
useTimeline(root, options?) | Scans root for .vd-timeline.vd-timeline-animated containers and returns a TimelineApi controller. |
UseTimelineOptions | { staggerMs?: number (default 140), maxStaggerIndex?: number (default 7), playIntervalMs?: number (default 800) }. |
stepNext() / stepPrev() | TimelineApi methods — reveal the next unrevealed item or unreveal the last revealed item on .vd-timeline-playback containers. |
play() / pause() | TimelineApi methods — start or stop auto-advancing playback timelines. |
refresh() | TimelineApi method — re-scans root and wires .vd-timeline-animated containers added since mount. |
Accessibility
- Static timelines need no JS; animation is purely additive and respects
prefers-reduced-motion. - Playback controls are real
<button>elements witharia-labels and arole="toolbar"wrapper. - Markers are decorative; the date/title/text carry the meaning.