Skip to content
animorio
IT
Back to the library

Snow report

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

The snow report of a ski resort, on black: an orange graduated stake planted in the snowpack, with the fresh snow lighter on top, and beside it the centimetres in large type, the snow fallen in the last twenty-four hours, the temperature and the lifts open. Picking Base, Mid or Summit the snowpack climbs the stake and settles with a ripple, and the numbers count. Pointing at the fresh snow colours its layer.

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>
<!--
  "Snow report" 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>Snow report</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 snow report of a ski resort: the graduated stake with the snowpack rising round it and settling,
         three altitudes to pick, the centimetres counting and the fresh snow, temperature and lifts -->
    <section class="sn" data-sn aria-label="Snow report">
      <header class="sn__head"><strong>Snow report</strong><span class="sn__alt"><span data-outalt>1,450 m</span></span></header>
      <div class="sn__seg" role="group" aria-label="Altitude" data-seg>
        <i class="sn__pick" data-pick aria-hidden="true"></i>
        <button type="button" class="sn__opt" data-zone="0"><span>Base</span></button>
        <button type="button" class="sn__opt" data-zone="1"><span>Mid</span></button>
        <button type="button" class="sn__opt" data-zone="2"><span>Summit</span></button>
      </div>
      <div class="sn__main">
        <svg class="sn__gauge" viewBox="0 0 120 150" role="img" aria-label="Snow stake" data-gauge>
          <path class="old" data-old></path>
          <path class="new" data-new></path>
          <line class="ground" x1="4" y1="138" x2="116" y2="138"></line>
          <line class="stake" x1="60" y1="8" x2="60" y2="138"></line>
          <g class="marks" data-marks></g>
        </svg>
        <div class="sn__side">
          <p class="sn__depth"><b><span data-outdepth>86</span><i>cm</i></b><span>Snow depth</span></p>
          <ul class="sn__stats">
            <li><button type="button" class="sn__stat" data-fresh><span>Fresh, 24 h</span><b>+<span data-outfresh>6</span> cm</b></button></li>
            <li><span class="sn__stat"><span>Temperature</span><b><span data-outtemp>−1</span> °C</b></span></li>
            <li><span class="sn__stat"><span>Lifts open</span><b><span data-outlifts>6</span> of <span data-outall>8</span></b></span></li>
          </ul>
        </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>

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.

29 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 “Snow report” 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 rounded card: “Snow report” and on the right “1,450 m”. Below, three options in a row, “Base”, “Mid” and “Summit”. On the left the drawing: a ground line, an orange stake with a mark every fifty centimetres and the numbers 100 and 200, and round it the snowpack, blue-grey with a white layer on top, the fresh snow, its surface gently uneven. On the right, in large type, “86 cm” with “Snow depth”, and three rows: “Fresh, 24 h +6 cm”, “Temperature −1 °C”, “Lifts open 6 of 8”. On entering the snowpack rises from the ground. Picking “Mid” slides the tile, the snow climbs the stake to 142, slightly overshoots and comes back, with a wave running over the surface and dying out; the fresh layer thickens, the numbers count and the altitude rolls into “1,900 m”. With “Summit” the snowpack passes the two-hundred mark. Moving the pointer onto “Fresh, 24 h” lights the row and turns the fresh layer blue.

How it works

The snowpack is to scale

A centimetre is worth half a drawing unit: the snowpack’s height and the stake’s marks use the same measure, so the snow reaches the right mark.

Two layers, one surface

The surface is a function: a slow swell plus a wave. The fresh layer is the band between the surface and the same curve lowered by its thickness; the rest is old snow.

Rising and settling

On changing altitude the height goes to its new value with a small overshoot; meanwhile the wave’s amplitude starts high and drops to zero, so the surface ripples and then stops.

The numbers

Depth, fresh snow, temperature and lifts are the same animated numbers that move the drawing.

Values to change

NameFileDefaultWhat it changes
ACCENTscript.js#7cc4ffThe colour of the fresh snow when pointed at.
RISEscript.js1How many seconds the snowpack takes to rise or fall when the altitude changes.
WOBBLEscript.js1How much the snow’s surface ripples while it settles.
LOOPscript.jstrueLeft alone, the demo’s pointer tries the three altitudes, points at the fresh snow and starts again.

Try them in the Playground

When to use it

On the site of a ski resort, a mountain hotel or a ski school, at the top of the page in the winter months; the same level rising along a stake carries a river’s level, a hut’s water tank, the tide in a harbour or a warehouse’s stock.

On phones

The card is at most 348 pixels wide and about 260 tall, and narrows with the screen: under 350 pixels the drawing and the numbers shrink a little. On a phone a tap on “Fresh, 24 h” colours the layer and another lets go. The options are 32 pixels tall.

With reduced motion

No rising snowpack and no waves: on changing altitude the snow is at its height at once, still, and the numbers are already the new ones. The fresh layer’s colour change stays. The demo’s pointer does not start.

Pitfalls

  • The drawing has alternative text and the four figures are written beside it: the stake helps the eye, the data reads in words. An aria-live region gives the report on every change of altitude.
  • The temperature uses the typographic minus sign, not the hyphen, and in the script it is written by its code, not pasted.
  • The fresh layer cannot be thicker than the snowpack: its thickness is capped at the total height.
  • The settling wave runs on its own time and dies out: left on, the surface would never be still.
  • Resort, altitudes and figures are invented; on a real site the report comes from the resort with its update time.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 6.2 KB; the libraries: GSAP 28 KB.

Testing

Tested on 30 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 animations