
The elastic button
Buttons, Hover, Text
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.
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>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
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 siteThe lines are stacked against the window’s bottom edge: a new line growing in height pushes all the others up by itself.
Outside, an element that opens and closes in height; inside, the real row that never changes size: the text is never squashed.
On changing level every line goes to zero or to its height, starting from the newest: the fold climbs the window.
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.
| Name | File | Default | What it changes |
|---|---|---|---|
ACCENT | script.js | #5fe0a8 | The colour of the label when the stream is live. |
RATE | script.js | 0.85 | How many seconds between one new line and the next. |
GLIDE | script.js | 0.4 | How many seconds a line takes to open or close. |
KEEP | script.js | 24 | How many lines are kept before the oldest are removed. |
LOOP | script.js | true | Left alone, the demo’s pointer filters by level, pauses and resumes. |
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.
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.
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.
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.
Tested on 1 December 2026
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.
You asked for
We made it for you: it’s in the library, with the preview, the Playground and the code to copy.
An animation you can’t find, or a site to take apart in the journal: tell us which. We pick the next ones from here.
With your account’s email and password.
or with your email
You’re signed in as .
With your account, you can download the zip of every animation and every pack, for free.