
The colour columns
Hover, SVG
The languages of a developer’s portfolio in a card on black: the first one’s percentage in large type, a single bar split into five coloured segments and under it the list with names and shares. Pointing at a language lifts its segment and lowers the others, and the big number counts to its share. Changing year redistributes the segments, the shares count and the rows swap places.
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>
<!--
"Language breakdown" 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>Language breakdown</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 languages of a developer's portfolio: one bar in segments, the language pointed at rising,
its share counting, and the years redistributing the segments and reordering the list -->
<section class="lg" data-lg aria-label="Languages">
<header class="lg__head">
<strong>Languages</strong>
<div class="lg__years" role="group" aria-label="Year" data-years><i class="lg__pick" data-pick aria-hidden="true"></i><button type="button" class="lg__year" data-year="0">2024</button><button type="button" class="lg__year" data-year="1">2025</button><button type="button" class="lg__year" data-year="2">2026</button></div>
</header>
<div class="lg__hero">
<span class="lg__num"><span data-outnum>46.2</span><i>%</i></span>
<span class="lg__what"><b class="lg__clip"><span data-outname>TypeScript</span></b><span class="lg__clip lg__sub"><span data-outsub>in 41 of 58 repos</span></span></span>
</div>
<svg class="lg__bar" data-bar role="img" aria-label="Share of code by language"></svg>
<div class="lg__rows" data-rows></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 “Language breakdown” from Animorio and fit it into my siteThe bar is an SVG with one rectangle per language. Each keeps three numbers: its share, how far it is lifted and how far it is dimmed. A single function redraws everyone’s position, width, height and opacity from those numbers.
Pointer, keyboard focus or a tap on a row or a segment: its “lifted” number goes to one on a spring, the others’ “dimmed” number rises, and the big number chases its share.
Every share animates to the new year’s, slightly staggered: the segments push one another because each one’s position is the sum of those before it.
The rows all sit at the top of the list and move down to their place with a translation: when the year changes the ranking is recomputed and every row goes to its new height.
| Name | File | Default | What it changes |
|---|---|---|---|
SWAP | script.js | 0.9 | How many seconds the segments take to redistribute when the year changes. |
LIFT | script.js | 6 | How many pixels the segment of the language pointed at rises. |
SPRING | script.js | 1 | How much the segments, the rows and the year tile bounce. |
LOOP | script.js | true | Left alone, the demo’s pointer points at the languages, changes year and starts again. |
In the portfolio of someone who writes code, in the skills section or beside the projects, in place of the usual row of logos; the same segmented bar with its reordering list carries a site’s traffic sources, the items of a monthly budget, sales channels or the space used on a drive.
The card is at most 348 pixels wide and about 290 tall, and narrows with the screen: the bar is redrawn on the width it finds. On a phone a tap on a row points at it and another lets go. The years are 24 pixels tall in a 30-pixel row, the rows 26.
No sliding segments and no moving rows: on changing year the bar, the shares and the order of the rows are the new ones at once, and pointing at a language shows its segment already lifted and the number already its own. The rows’ fades stay. 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.1 KB; the libraries: GSAP 28 KB.
Tested on 30 November 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.