Skip to content
animorio
IT
All components

Live log viewer

Code, HoverGSAP, CSS onlyMediumCompressed weight: Demo 6.9 KBGSAP 28 KBFreeDownload the zip

A server’s live logs, in a card on black: the lines come in one by one from the bottom pushing the others up, with the time, the level and the message. The filters “All”, “Info”, “Warn” and “Error”, each with its count, fold away the lines that do not match, from the bottom upwards. The round button pauses: the two bars close into a triangle and the label counts the lines waiting, which on resuming come in one behind the other.

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>
<!--
  "Live log viewer" 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>Live log viewer</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">
    <!-- a server's live logs: lines coming in one by one from the bottom, level filters that fold away the lines
         that do not match, and a pause that holds the stream and counts what is waiting -->
    <section class="lv" data-lv aria-label="Live log viewer">
      <header class="lv__head">
        <div class="lv__name"><strong>api-server</strong><span class="lv__clip"><span data-outstate>Live, following the tail</span></span></div>
        <button type="button" class="lv__hold" data-hold aria-label="Pause the stream"><svg viewBox="0 0 16 16" aria-hidden="true"><polygon data-left points="3.500,3 6.500,3 6.500,13 3.500,13"></polygon><polygon data-right points="9.500,3 12.500,3 12.500,13 9.500,13"></polygon></svg></button>
      </header>

      <div class="lv__levels" role="radiogroup" aria-label="Level" data-levels>
        <i class="lv__thumb" data-thumb aria-hidden="true"></i>
        <button type="button" role="radio" aria-checked="true" data-level="all">All <b data-count="all">0</b></button>
        <button type="button" role="radio" aria-checked="false" data-level="info">Info <b data-count="info">0</b></button>
        <button type="button" role="radio" aria-checked="false" data-level="warn">Warn <b data-count="warn">0</b></button>
        <button type="button" role="radio" aria-checked="false" data-level="error">Error <b data-count="error">0</b></button>
      </div>

      <div class="lv__window"><div class="lv__lines" data-lines role="log" aria-label="Log lines" aria-live="off"></div></div>
    </section>
    <span class="live" aria-live="polite" data-live></span>

    <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.

22 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 “Live log viewer” 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 black, a dark rounded card: “api-server” and under it, in green, “Live, following the tail”; on the right a round button with the two pause bars. Then four filters with their count, “All 9”, “Info 6”, “Warn 2”, “Error 1”, the thumb on the first. Below, the log window: monospaced lines with the time (“14:02:19”), the level (“INFO”, “WARN” in amber, “ERR” in coral on a faintly tinted band) and the message, “GET /v1/orders 200 in 42 ms”, “Slow query orders_by_user, 812 ms”, “Payment webhook timed out”. The top lines fade out. A little under every second a new one arrives from the bottom: it opens pushing the others up and comes in from the left, and the filter counts go up. Tapping “Error” slides the thumb and the lines that are not errors close one after the other, from the bottom upwards, leaving only those; with “All” they open again. Tapping the round button joins the bars into a triangle, the button turns light and the label says “Paused”, then “Paused, 3 new lines” while more keep arriving outside; tapping it again brings the waiting lines in one behind the other.

How it works

Anchored at the bottom

The lines are stacked against the window’s bottom edge: a new line growing in height pushes all the others up by itself.

A line in two

Outside, an element that opens and closes in height; inside, the real row that never changes size: the text is never squashed.

The filter folds

On changing level every line goes to zero or to its height, starting from the newest: the fold climbs the window.

Pause sets aside

While paused the lines keep arriving but go into a queue, and the label counts them; on resuming they come in one behind the other.

Values to change

NameFileDefaultWhat it changes
ACCENTscript.js#5fe0a8The colour of the label when the stream is live.
RATEscript.js0.85How many seconds between one new line and the next.
GLIDEscript.js0.4How many seconds a line takes to open or close.
KEEPscript.js24How many lines are kept before the oldest are removed.
LOOPscript.jstrueLeft alone, the demo’s pointer filters by level, pauses and resumes.

Try them in the Playground

When to use it

In the dashboard of a hosting service, a deploy platform or a monitoring system, where a server’s logs are followed; on the page of an app showing what an automation or an AI agent is doing. The same window carries a live chat, a team’s activity feed or the commentary of a match.

On phones

The card is at most 348 pixels wide and about 300 tall; the window gets shorter on short screens. Long messages are cut with an ellipsis rather than wrapping; the pause button is 44 pixels and the filters 30 tall.

With reduced motion

The lines still arrive, but appear already in place without opening or sliding; the filters remove them and put them back in one step. The demo’s pointer does not start.

Pitfalls

  • The level is written as a word on every line (“WARN”, “ERR”): colour helps but is not the only sign.
  • The window has the log role but is not read line by line by screen readers (it would be a flood): only filter changes, pause and resume are announced.
  • Old lines are removed from the document beyond a certain number: without that, the page grows forever.
  • While paused the filter counts stand still: waiting lines are counted in the label, and move into the counts on resuming.
  • Messages, times and names are invented and loop round.

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 1 December 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 components