Skip to content
animorio
IT
Back to the library

Incident timeline

Hover, SVGGSAP, CSS onlyMediumCompressed weight: Demo 5.6 KBGSAP 28 KBFreeDownload the zip

The card of an incident on a service’s status page, dark and product grade: the four updates arrive one after the other, each opening its note while the one before closes, the line between the tiles grows in the colour of the moment, the status pill rolls and the minutes count up. At ‘Resolved’ a green line runs down the whole timeline and the tiles turn green one after the other. Hovering a step opens it.

The code

A folder that runs on its own: index.html, style.css, script.js and the libraries from a CDN. The React and Vue tabs hold the same demo as a ready component, which switches its animations off when it leaves the page.

<!doctype html>
<!--
  "Incident timeline" from Animorio · https://animorio.com
  License: free on your own sites and your clients’ sites, paid work included.
  Not for resale, redistribution, templates or code collections · https://animorio.com/en/license/
-->
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>The incident timeline of a status page with steps that open and a line going from red to green</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <main class="stage">
    <!-- the incident card of a status page: the updates arrive one after the other, each opening its note while the
         one before closes; the rail between them grows in the colour of the moment, the status pill rolls and the
         minutes count up; at Resolved a green line runs down the whole rail and every tile turns green -->
    <article class="card" data-card aria-label="Incident: failed card payments in Europe">
      <span class="card__sheen" data-sheen aria-hidden="true"></span>
      <header class="head">
        <div class="head__text">
          <h1>Failed card payments in Europe</h1>
          <p class="head__dur"><span data-dur-label>Ongoing for</span> <b data-min>2</b> min</p>
        </div>
        <span class="status"><span class="status__roll"><span class="status__word" data-status>Investigating</span></span></span>
      </header>
      <ol class="steps" data-steps>
        <li class="step" data-step tabindex="0">
          <span class="step__rail" aria-hidden="true"><i data-rail></i><i class="step__rail-ok" data-rail-ok></i></span>
          <span class="step__tile" data-tile aria-hidden="true"><svg viewBox="0 0 24 24"><circle pathLength="1" cx="10.4" cy="10.4" r="5.2"></circle><path pathLength="1" d="M14.4 14.4 18.4 18.4"></path></svg></span>
          <div class="step__main">
            <div class="step__head"><b>Investigating</b><time>14:02</time></div>
            <div class="step__note" data-note><p>We are seeing failed card payments in Europe and looking into it.</p></div>
          </div>
        </li>
        <li class="step" data-step tabindex="0">
          <span class="step__rail" aria-hidden="true"><i data-rail></i><i class="step__rail-ok" data-rail-ok></i></span>
          <span class="step__tile" data-tile aria-hidden="true"><svg viewBox="0 0 24 24"><circle pathLength="1" cx="12" cy="12" r="6.6"></circle><path pathLength="1" d="M12 3v3.6M12 17.4V21M3 12h3.6M17.4 12H21"></path></svg></span>
          <div class="step__main">
            <div class="step__head"><b>Identified</b><time>14:11</time></div>
            <div class="step__note" data-note><p>A bad config reached the payment gateway. Rolling it back now.</p></div>
          </div>
        </li>
        <li class="step" data-step tabindex="0">
          <span class="step__rail" aria-hidden="true"><i data-rail></i><i class="step__rail-ok" data-rail-ok></i></span>
          <span class="step__tile" data-tile aria-hidden="true"><svg viewBox="0 0 24 24"><path pathLength="1" d="M3 12h4l2.2-5.4 3.6 10.8L15 12h6"></path></svg></span>
          <div class="step__main">
            <div class="step__head"><b>Monitoring</b><time>14:26</time></div>
            <div class="step__note" data-note><p>The rollback is live and payments are going through again.</p></div>
          </div>
        </li>
        <li class="step" data-step tabindex="0">
          <span class="step__rail" aria-hidden="true"><i data-rail></i><i class="step__rail-ok" data-rail-ok></i></span>
          <span class="step__tile" data-tile aria-hidden="true"><svg viewBox="0 0 24 24"><path pathLength="1" d="M5.4 12.6 10 17.2 18.8 7.2"></path></svg></span>
          <div class="step__main">
            <div class="step__head"><b>Resolved</b><time>14:49</time></div>
            <div class="step__note" data-note><p>Error rates are back to normal. No payments were lost.</p></div>
          </div>
        </li>
      </ol>
    </article>
  </main>

  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
  <script src="script.js"></script>
</body>
</html>

Playground

Change values, colours and text with the controls and watch the animation respond live. Or write in the code yourself. Then download the folder with your changes.

32 values to change

Or ask your AI assistant for it

With the Animorio connector, Claude Code, ChatGPT, Cursor or VS Code take it from here, guide included, and fit it into your project. Paste this request:

Take “Incident timeline” from Animorio and fit it into my site
Platform licenseFree on your sites and your clients’ sites. Want it inside a website builder, a template platform or a client dashboard? There’s a license for agencies and platforms.

What it does

On a near black page, with a haze at the top in the colour of the status, sits a dark card with round corners. At the top the title ‘Failed card payments in Europe’, under it ‘Ongoing for 2 min’ and on the right the red ‘Investigating’ pill. Below the line, the timeline. The first update arrives: the red tile with the magnifier pops in with a bounce and the magnifier draws itself, next to it ‘Investigating’ and the time, and its note opens below. After a couple of seconds a line runs down from the tile, fading from red to amber, and ‘Identified’ arrives with its target: its note opens, the one before closes, the pill rolls and turns amber, the minutes rise to 9, the haze and the card’s shadow change colour. Then ‘Monitoring’, blue, with its trace, at 24 minutes. Finally ‘Resolved’ with the tick: the words at the top become ‘Resolved in 47 min’, the pill green, and a glowing green line runs down the whole timeline while the tiles, one after the other, give a small kick and turn green; a pale light crosses the card. After a few seconds the steps leave and the story starts again. With a real pointer, finger or keyboard the timeline shows in full, resolved, and the step that is touched opens its note.

How it works

One note open at a time

Each step has a note of zero height. Opening one means taking its height to auto with GSAP and the others to zero: the open step grows and pushes down the ones below.

The line that stretches by itself

The line between two tiles is an absolute element inside the step, from under the tile to the bottom of the step: when the note opens, it stretches with the step without a line of code. Inside it a child is scaled vertically from 0 to 1 by GSAP, with a gradient from this status’s colour to the next one’s.

One colour for the status

The page takes a class per status (is-identified, is-monitoring, is-resolved) that changes a single CSS variable, --state: pill, page haze and shadow follow it with their transitions. The word in the pill leaves upwards and the new one comes in from below with back.out.

Icons that draw themselves

The tile icons are SVG strokes with pathLength 1: on arrival stroke-dashoffset goes from 1 to 0, one stroke after the other, while the tile goes from 0.5 to 1 with the BOUNCE overshoot.

Resolved

Each step has a second line, green and glowing, over the first: at the end they fill in a row from the top, 0.16 seconds apart, and at the same pace each step takes the is-done class that turns its tile green.

The real hand

At the first mouse pass, touch or key the story stops and the timeline goes straight to its final state, all visible: from there each step opens on hover, on touch, on keyboard focus or with Enter.

Values to change

NameFileDefaultWhat it changes
ACCENTscript.js#2fd27fThe colour of the resolved state.
STEPscript.js1.9How many seconds between one update and the next.
HOLDscript.js3How many seconds it stays resolved before starting again.
MINUTESscript.js47How long the incident lasted, in minutes.
BOUNCEscript.js2.2How far the tiles overshoot when they arrive: 0 = no bounce.
LOOPscript.jstrueLeft alone, the timeline tells itself again.

Try them in the Playground

When to use it

For a service’s status page, the dashboard of a monitoring tool or an app’s help centre: the story of an outage from start to fix. The same structure works for the progress of an order, a request or a delivery.

On phones

The same animation with adapted sizes: title, margins and rows also follow the window’s height, so the four steps and the open note fit the box. With a finger, the tapped step opens its note.

With reduced motion

No arrivals and no growing lines: the timeline fades in already resolved, with the last note open. The notes open and close without animation.

Pitfalls

  • A single SVG line between the tiles would need redrawing every frame while the notes change height: a piece of line inside each step stretches with the layout.
  • GSAP scales the line’s child, not the line: the absolute position stays with CSS and the transform with GSAP.
  • Stopping the story halfway leaves tweens on the steps and the minutes: they must be killed before the final state is set, or they overwrite it.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 5.6 KB; the libraries: GSAP 28 KB.

Testing

Tested on 13 November 2026

  • Desktop: Done
  • Phone: Done
  • Reduced motion: Done
  • Safari on iPhone: To do

License

Use it in your own projects and in your clients’ projects. Do not resell it or redistribute it as is. GSAP stays under its own Standard license. Full license.

All animations