Skip to content
animorio
IT
Back to the library

Ski lift status

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

The live status of a ski area’s lifts: the cabins run along their cables at each lift’s own pace and sway with the wind. When a gust passes the limit the most exposed lift slows, stops and turns amber; once the wind drops it starts again. Hover a lift to read its length and ride time.

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>
<!--
  "Ski lift status" 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>Ski lift status</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 lifts of a ski area, live: cabins run along their cables at each lift's own pace, sway with
         the wind, and the most exposed lift is put on hold when a gust passes the limit -->
    <section class="sl" data-sl aria-label="Ski lift status">
      <header class="sl__head">
        <span class="sl__title">
          <b>Alta Cresta</b>
          <span class="sl__roll"><span data-count></span></span>
        </span>
        <span class="sl__wind" data-windbox>
          <svg viewBox="0 0 26 18" aria-hidden="true">
            <path data-gust d="M2 4.500h13a2.500 2.500 0 1 0-2.500-2.500"></path>
            <path data-gust d="M2 9h19a2.500 2.500 0 1 1-2.500 2.500"></path>
            <path data-gust d="M2 13.500h9a2 2 0 1 1-2 2"></path>
          </svg>
          <span><b data-wind>0</b> km/h</span>
        </span>
      </header>

      <ul class="sl__list" data-list></ul>

      <p class="sl__foot"><span class="sl__roll"><span data-foot>Hover a lift for its details</span></span></p>
    </section>

    <svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.2 19.2 11l-6.3 1.6-3.3 5.9Z"></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.

17 values to change

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 “Ski lift status” 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 a snow-coloured ground, at the top the ski area’s name with “3 of 4 lifts open” under it and on the right the wind pill, with three breathing lines and the kilometres per hour. Below, a white list of four lifts: for each its name and type, a rising cable with two pylons and, on the right, the status with the wait. Cabins run along the cables, closed ones for gondolas and open seats for chairlifts, each at its lift’s speed; they sway from the cable the harder the wind blows and fade near the two stations. One lift is closed for maintenance: dashed cable, no cabins. Every twelve seconds a gust comes: the kilometres per hour climb, the pill turns amber and, past the limit, the most exposed lift slows to a stop, its cabins turn amber and sway more, the status rolls to “On hold” and the count at the top drops to two. Once the wind falls it starts again, slowly. Hovering a lift lights its row, turns its cabins blue and shows its length and ride time at the bottom.

How it works

Cabins from one number

Each cabin has a position between 0 and 1 along the cable, advancing on GSAP’s ticker at the lift’s speed. Its x and y come from that, written in the transform attribute together with the sway.

Stopping gently

A lift does not stop dead: it has a speed multiplier going from 1 to 0 in just over a second and back to 1 more slowly. The cabins stay where they are and start again from there.

Wind with hysteresis

The lift stops above the limit and restarts only five kilometres per hour below it: a gust wavering around the limit does not flick it on and off.

Values to change

NameFileDefaultWhat it changes
ACCENTscript.js#1f6fffThe colour of the lift under the pointer.
HOLDscript.js#c97a00The colour of a lift held for wind.
CALMscript.js24The background wind, in km/h.
GUSTscript.js47The strongest gust, in km/h.
LIMITscript.js40Above these km/h the most exposed lift stops.
PACEscript.js1The cabins’ speed (1 = normal).
LOOPscript.jstrueLeft alone, a pointer moves over two lifts.

Try them in the Playground

When to use it

On a ski area’s site or app, on a mountain hotel’s page, in a hut; and wherever there are lines with a live status: metro lines, ferries, pool lanes, a park’s queues.

On phones

The same list, as wide as the screen; a tap on a lift shows its details. The rows are also sized on the window’s height.

With reduced motion

The cabins stand still on their cables and do not sway. Wind and statuses still change, with numbers and words updating without motion.

Pitfalls

  • Ski area, lifts, waits and wind are made up, and the gust is a looping timeline: on a real site statuses and wind come from the lift operator.
  • The status is not told by colour alone: each row writes “Open”, “On hold” or “Closed” with its reason, and has a full aria-label; the rows can be reached by keyboard.
  • The swaying cabins are written in the SVG transform attribute (a translate plus a rotate on the hanging point): no GSAP transformOrigin, which on an SVG group takes its bounding box.

Libraries

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.

Testing

Tested on 19 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