
Melting words
Text, Scroll, SVG
Scroll inside the preview
The commit history of a repository on a made-up code host, Fernwick, in the clean style of product interfaces: the stage stays still and as you scroll the main line grows downwards, a feature branch and a hotfix peel off to the side on soft curves and come back in, every commit closes its ring on the line with a small pop, its row slides in beside it, HEAD rides to the newest commit on a short spring, the count in the header rolls up and the two merges get their release tag. At the end the footer says the branch is up to date.
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>
<!--
"Commit history branches" 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>Fernwick, commit history</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/geist-mono@5.3.0/index.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- a made-up code host, Fernwick. A sticky stage with the commit history of a repository: scrolling, the main line
grows downwards, two branches peel off to the side and come back in, every commit closes its ring on the line,
the row slides in next to it, HEAD follows the newest commit on a spring and the two releases get their tag -->
<section class="corsa" data-corsa>
<div class="palco" data-palco>
<h2 class="titolo" data-titolo>What changed this week</h2>
<figure class="pannello" data-pannello>
<div class="testa" data-testa>
<span class="repo">
<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 2.5h7l2 2v9h-9z"/><path d="M5.5 6.5h5M5.5 9h5M5.5 11.5h3"/></svg>
<span class="repo__nome"><span class="repo__org">fernwick /</span> billing-web</span>
</span>
<span class="testa__destra">
<span class="ramo">
<svg viewBox="0 0 16 16" aria-hidden="true"><circle cx="5" cy="3.5" r="1.6"/><circle cx="5" cy="12.5" r="1.6"/><circle cx="11" cy="5.5" r="1.6"/><path d="M5 5.1v5.8M11 7.1c0 2.6-6 2.2-6 3.8"/></svg>
main
<svg class="ramo__giu" viewBox="0 0 16 16" aria-hidden="true"><path d="M4.5 6.5 8 10l3.5-3.5"/></svg>
</span>
<span class="conto"><b class="conto__n" data-conto>0</b> commits</span>
</span>
</div>
<div class="corpo" data-corpo>
<div class="fascia" data-fascia aria-hidden="true"></div>
<svg class="grafo" data-grafo aria-hidden="true"></svg>
<ol class="righe" data-righe></ol>
<span class="head" data-head aria-hidden="true">HEAD</span>
</div>
<div class="piede" data-piede>
<span class="piede__stato">
<svg viewBox="0 0 16 16" aria-hidden="true"><path class="piede__spunta" d="M4 8.4 6.8 11 12 5.2"/></svg>
Up to date with origin/main
</span>
<span class="piede__uscita">Released v2.5.0</span>
</div>
</figure>
</div>
</section>
<footer class="fine">Fernwick is a made-up product. Names and commits are illustrative.</footer>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/ScrollTrigger.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/lenis@1.3.26/dist/lenis.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.
28 values to change
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 “Commit history branches” from Animorio and fit it into my siteThe script measures the stage and works out the row height so the whole panel fits, on the phone too; then it draws the lines in an SVG as big as the left column. Each line goes from a commit to its parent: straight on the same lane, with a half-row cubic curve when a branch peels off or comes back.
A scrubbed ScrollTrigger takes a number from 0 to 1. Each line draws with stroke-dashoffset between half a step after the parent and just before the child, so the lines grow steadily downwards; the commit ring closes with the same trick on its circumference, rotated by minus 90 degrees so it starts from the top.
The HEAD pill and the band under the row do not follow the scroll directly: they chase the newest commit with a hand-written spring on the GSAP ticker (stiffness and damping are two knobs), so when a new commit arrives they slide down with the faintest bounce.
Each row slides in on a slowing curve, the older ones lose some opacity as new ones arrive, the release tags come in with a small bounce and the count at the top rolls at every new commit.
| Name | File | Default | What it changes |
|---|---|---|---|
RIDE | script.js | 1 | How much scroll the whole history takes: 2 is twice as long. |
SCRUB | script.js | 0.6 | How far the drawing lags behind the scroll, in seconds. |
HEAD_STIFFNESS | script.js | 320 | How hard HEAD is pulled to the newest commit. |
HEAD_DAMPING | script.js | 26 | How quickly HEAD stops wobbling: lower bounces more. |
RING_POP | script.js | 0.22 | How much a commit ring swells when it closes (0 none). |
PAST_FADE | script.js | 0.38 | How much the older rows step back (0 none). |
LINE_WIDTH | script.js | 1.6 | The thickness of the branch lines, in pixels. |
For the what’s new or release page of a developer tool, the landing page of a code host, a CI or review service, or a case study telling how a version came together: whoever scrolls sees the work split and come back together, instead of reading a list.
The same animation with adapted sizes: rows are sized on the stage height so the whole panel fits, the graph narrows, and on narrow cards the author, the time and the release note step aside; the hash, the tags and HEAD stay.
No motion: the history is already fully drawn, with the branches, the closed rings, the tags, HEAD on the newest commit and the footer on; the panel fades in.
GSAP 3.15.0, ScrollTrigger 3.15.0, Lenis 1.3.26, Mona Sans (font variabile) 5.3.0, Geist Mono (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 8.6 KB; the libraries: GSAP + ScrollTrigger 45 KB, Lenis 5.3 KB.
Tested on 30 October 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.
Support Animorio
Animorio stays free thanks to the people who support it. If you like, buy us a coffee: it helps us make the next animations.
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.