
The star rating
Ratings, SVG, Hover
A valley’s avalanche bulletin in a card: the danger level large in its colour, the mountain split at the treeline with one band per altitude, and the compass rose with the wedges of the slopes at risk. Pick one of three days and the level rolls, the mountain and the rose change colour, the new wedges light up one after the other clockwise and on the five-level scale the day’s one rises.
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>
<!--
"Avalanche bulletin" 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>Avalanche bulletin</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 avalanche bulletin of a ski area: the danger level, the mountain split at the treeline,
the slopes at risk on the compass rose, and three days to pick from -->
<section class="av" data-av aria-labelledby="av-title">
<header class="av__head">
<span class="av__name"><b id="av-title">Avalanche bulletin</b><span>Val Rocca, eastern ridge</span></span>
<span class="av__prob"><span data-prob>Wind slab</span></span>
</header>
<div class="av__main">
<div class="av__level" aria-live="polite">
<span class="av__tile" data-tile><b><span data-num>3</span></b></span>
<span class="av__word"><b class="av__roll"><span data-word>Considerable</span></b><span class="av__roll av__roll--sub"><span data-where>Above 2,200 m</span></span></span>
</div>
<svg class="av__peak" viewBox="0 0 100 80" aria-hidden="true">
<defs><clipPath id="av-top"><rect x="0" y="0" width="100" height="40"></rect></clipPath><clipPath id="av-low"><rect x="0" y="41.500" width="100" height="40"></rect></clipPath></defs>
<path class="av__band" data-top clip-path="url(#av-top)" d="M4 76 32 30l9 11L58 8l38 68Z"></path>
<path class="av__band" data-low clip-path="url(#av-low)" d="M4 76 32 30l9 11L58 8l38 68Z"></path>
<path class="av__ridge" d="M4 76 32 30l9 11L58 8l38 68"></path>
<path class="av__tree" d="M25 40.750h52"></path>
</svg>
<svg class="av__rose" viewBox="0 0 78 78" aria-hidden="true"><path data-w d="M36.57 32.43L27.55 8.05A33 33 0 0 1 50.45 8.05L41.43 32.43A7 7 0 0 0 36.57 32.43Z"></path><path data-w d="M41.93 32.64L52.79 9.02A33 33 0 0 1 68.98 25.21L45.36 36.07A7 7 0 0 0 41.93 32.64Z"></path><path data-w d="M45.57 36.57L69.95 27.55A33 33 0 0 1 69.95 50.45L45.57 41.43A7 7 0 0 0 45.57 36.57Z"></path><path data-w d="M45.36 41.93L68.98 52.79A33 33 0 0 1 52.79 68.98L41.93 45.36A7 7 0 0 0 45.36 41.93Z"></path><path data-w d="M41.43 45.57L50.45 69.95A33 33 0 0 1 27.55 69.95L36.57 45.57A7 7 0 0 0 41.43 45.57Z"></path><path data-w d="M36.07 45.36L25.21 68.98A33 33 0 0 1 9.02 52.79L32.64 41.93A7 7 0 0 0 36.07 45.36Z"></path><path data-w d="M32.43 41.43L8.05 50.45A33 33 0 0 1 8.05 27.55L32.43 36.57A7 7 0 0 0 32.43 41.43Z"></path><path data-w d="M32.64 36.07L9.02 25.21A33 33 0 0 1 25.21 9.02L36.07 32.64A7 7 0 0 0 32.64 36.07Z"></path><text x="39" y="4.500">N</text></svg>
</div>
<div class="av__scale" aria-hidden="true"><i data-s></i><i data-s></i><i data-s></i><i data-s></i><i data-s></i></div>
<div class="av__days" role="group" aria-label="Day" data-days>
<span class="av__pill" data-pill aria-hidden="true"></span>
<button class="av__day" type="button" data-day aria-pressed="true">Today</button>
<button class="av__day" type="button" data-day aria-pressed="false">Thursday</button>
<button class="av__day" type="button" data-day aria-pressed="false">Friday</button>
</div>
</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>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 “Avalanche bulletin” from Animorio and fit it into my siteFor each day: the level above and below the treeline, the problem and eight values for the aspects, from north clockwise. A single function works out tile, words, mountain, rose and scale.
The same path drawn twice, each clipped by a clipPath: one keeps the part above the line, the other the part below. GSAP only animates the fill colour of each.
Eight wedges worked out with sine and cosine. Those lighting up take the level’s colour and pop out in scale with a delay of POP seconds from one to the next; those going out simply fade.
| Name | File | Default | What it changes |
|---|---|---|---|
TREELINE | script.js | 2200 | The altitude, in metres, that splits the mountain into two bands. |
POP | script.js | 0.045 | How many seconds pass between one wedge of the rose and the next. |
FADE | script.js | 0.5 | How long the mountain and the level take to change colour. |
On the site of a ski resort, a mountain hut, a mountain hotel or a ski touring school, next to the weather and the lifts; and in apps for people heading into the mountains in winter.
The same card, as wide as the screen minus the margins: level, mountain and rose stay on one row, the three days are buttons 36 pixels tall. The card is about 270 pixels tall and fits whole in the phone box.
No bounces and no popping wedges: on changing day the number, the words, the colours of the mountain and the rose and the scale go straight to the new values. 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 5.8 KB; the libraries: GSAP 28 KB.
Tested on 25 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.