StealThis .dev

Arc Timeline

A timeline displayed along a curved semicircle arc. Events are positioned radially with connecting dots, creating a unique non-linear timeline visualization.

Open in Lab
css javascript vue svelte
Targets: TS JS HTML React Vue Svelte

Code

Arc Timeline

A curved semicircle timeline that positions events along an arc rather than in a straight line. Each event node sits at a calculated angle along the arc, with labels extending outward.

How it works

  1. A container element defines the arc dimensions.
  2. JavaScript calculates each item’s position using Math.cos and Math.sin based on its index, distributing events evenly along a 180-degree arc.
  3. Items are absolutely positioned using top/left transforms from arc center.
  4. A dotted SVG arc path connects the event nodes visually.

Features

  • Events distributed evenly along a semicircular arc
  • SVG arc path connecting all nodes
  • Animated entrance with staggered delays
  • Responsive sizing