Skip to main content
ALEXY LINK

Timeline 01

A classic centered vertical timeline — events alternate left and right on desktop, the spine draws itself in, and cards reveal progressively.

Requirements

HTML, CSS, JavaScript

Dependencies

None

Usage

Copy index.html, styles.css and script.js into your project.

About Timeline 01

Timeline 01 is a timeline section in the Timeline Sections collection, available in HTML + CSS + JavaScript and React + TypeScript + Tailwind CSS. Last updated August 29, 2026.

  • timeline
  • vertical timeline
  • milestones
  • company history
  • alternating layout

What the code includes

HTML + CSS + JavaScript

3 files: index.html, styles.css, script.js

  • Behavior is handled in script.js.
  • ARIA in the markup: aria-label.
  • HTML elements used: section, ol.
  • Includes a prefers-reduced-motion rule for its animation.
  • Responsive CSS breakpoints at 1024px.

React + TypeScript + Tailwind CSS

3 files: Timeline01.jsx, Timeline01.types.ts, Timeline01.tailwind.css

  • Typed data shapes: TimelineEvent.
  • Uses React hooks: useEffect, useRef.
  • ARIA in the markup: aria-label.
  • HTML elements used: section, ol.
  • Includes a prefers-reduced-motion rule for its animation.
  • Responsive Tailwind breakpoints used: sm, lg.
View all Timeline Sections (5)