Skip to content
animorio
IT
All components

Avalanche bulletin

Weather, SVG, HoverGSAP, CSS onlyMediumCompressed weight: Demo 5.8 KBGSAP 28 KBFreeDownload the zip

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.

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>
<!--
  "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>

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 “Avalanche bulletin” 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 card: “Avalanche bulletin”, “Val Rocca, eastern ridge” and on the right a pill with the day’s problem, “Wind slab”. Below, on the left an orange tile with a large “3”, “Considerable” and “Above 2,200 m”; in the middle a two-peaked mountain cut by a line: the upper part orange, the lower yellow; on the right a rose of eight wedges with “N” on top, four orange and four off. Then the scale: five small bars from green to dark red, the third taller and lit. At the bottom three days, “Today”, “Thursday”, “Friday”, with a pill under the chosen one. Tap “Thursday” and the pill slides, the tile turns red with a bounce and the number rolls to “4”, “High”; the mountain goes red and orange, on the rose the new wedges pop out one after the other, the fourth bar of the scale rises and the problem rolls to “New snow”. “Friday” drops to “2”, “Moderate”, yellow and green, with just two wedges.

How it works

The day is an object

For 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 mountain in two

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.

The rose

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.

Values to change

NameFileDefaultWhat it changes
TREELINEscript.js2200The altitude, in metres, that splits the mountain into two bands.
POPscript.js0.045How many seconds pass between one wedge of the rose and the next.
FADEscript.js0.5How long the mountain and the level take to change colour.

Try them in the Playground

When to use it

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.

On phones

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.

With reduced motion

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.

Pitfalls

  • Valley, levels and aspects are made up: a real bulletin is published by the local avalanche service, and the card has to link to the full text, which says things a number does not.
  • The colours are those of the European scale, but the level is not told by colour alone: there are the number, the name and the place on the scale.
  • It is a summary to read at home, not a tool to decide on the slope.

Libraries

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.

Testing

Tested on 25 November 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