Skip to content
animorio
IT
Back to the library

Audit log

Hover, TransitionsGSAP, CSS onlyMediumCompressed weight: Demo 6.9 KBGSAP 28 KBFreeDownload the zip

The audit log of a team app: who did what and when. While it is “Live” new events arrive at the top and push the others down; the filters (Sign-ins, Changes, Billing) drop the rows that do not belong and slide the rest into place; a row opens on the value before and the value after, and while you read it the stream stays paused.

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>
<!--
  "Audit log" 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>Audit log</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 audit log of a team app: events arrive at the top while it is live, the filters re-sort the rows
         in place, and a row opens on what changed, before and after; reading a row pauses the stream -->
    <section class="al" data-al aria-label="Audit log">
      <header class="al__head">
        <h2 class="al__title">Activity</h2>
        <span class="al__live"><span class="al__roll"><span data-live>Live</span></span></span>
        <span class="al__count"><span data-count>128</span> events</span>
      </header>

      <div class="al__chips" data-chips role="group" aria-label="Filter events"></div>

      <ul class="al__list" data-list aria-live="off"></ul>
    </section>

    <svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.200 19.200 11l-6.300 1.600-3.300 5.900Z"></path></svg>
  </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.

15 values to change

Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI

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 “Audit log” 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 ground, a dark card: “Activity”, the “Live” tag and the event count. Below, four filters and the list: on each row the disc of initials, who and what (“Maya Ito changed Tom’s role”), and how long ago. Every two and a half seconds a new event drops in from the top with a blue flash that fades, the other rows slide down on a spring, the times grow older and the count goes up. Tap a filter and the rows that do not belong go out while those that stay rise into place, older ones arriving from the bottom. Tap a row and it opens: below appear the value before, struck through in pale red, the arrow and the value after in green, plus a line of context; the rows beneath move down, the tag rolls to “Paused” and turns grey. Close the row, or take the pointer off the list, and the stream starts again.

How it works

Rows have a name

Every event has an id and its row stays the same for life: the wanted list is worked out again (filter, first seven) and each row is taken to its new height by a tween, instead of redrawing everything.

Arriving, staying, leaving

A new row starts one row higher and transparent, with the flash; those that stay slide; those the filter rules out go dark and are removed when the movement ends.

The row that opens

Opening means changing the height of a single row and reworking the positions of those beneath: the same pass used for arrivals.

Pausing while you read

The stream is a counter in GSAP’s ticker that stops with a row open or the mouse on the list: a list that runs away under your finger cannot be read.

Values to change

NameFileDefaultWhat it changes
ACCENTscript.js#7c9cffThe colour of the Live tag and of the flash on events that just arrived.
RATEscript.js2.4How many seconds between new events while the log is live.
SPRINGscript.js1How elastic the rows are when they slide into place: 0.3 = stiff, 2 = very elastic.
LOOPscript.jstrueLeft alone, the demo’s pointer filters, opens a row on before and after and goes back to All.

Try them in the Playground

When to use it

In the security settings of a team app, in a service’s admin panel, on the history page of a shared document. The same live list works for orders arriving in a shop or for a dashboard’s notifications.

On phones

The same card, as wide as the screen: rows are 46 pixels tall, long text truncates with an ellipsis and the open row shows before and after on one line. With a finger there is no hover: the stream stops only with a row open.

With reduced motion

The log stays paused and no events arrive by themselves; filters and rows change at once, with no sliding. The demo does not move by itself.

Pitfalls

  • People and events are made up and repeat in a cycle: the real ones come from the server (a stream or a request now and then), and only a few are kept in memory.
  • The rows are absolutely positioned: the list has a fixed height and clips what is left over, with a fade at the bottom.
  • A self-updating list should not be announced row by row to screen readers (aria-live off): the count is enough, plus the pause when you enter the list.
  • With a filter on, events of other types still arrive and the count rises: the row itself must not come in, or the filter looks broken.
  • A closed row hides its details by height alone: buttons inside the details, if there were any, would need to leave the Tab order.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

Tested on 21 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