Skip to content
animorio
IT
Back to the library

Leaderboard podium

Hover, TransitionsGSAP, CSS onlyMediumCompressed weight: Demo 5.9 KBGSAP 28 KBFreeDownload the zip

The podium of a step challenge, on warm white: three steps of different heights, the middle one golden, and on each a person with the initial in a circle, the name and the steps. Going from “This week” to “All time” the ranking changes and the three people hop onto their new step, one after the other: the step gives a little on landing and the steps count. Pointing at a person shows steps and place.

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>
<!--
  "Leaderboard podium" 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>Leaderboard podium</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 podium of a leaderboard: three steps, the three people hopping onto their new step when the
         ranking changes from this week to all time, the steps giving under them and the points counting -->
    <section class="pd" data-pd aria-label="Step challenge">
      <header class="pd__head"><strong>Step challenge</strong><span class="pd__unit">steps</span></header>
      <div class="pd__seg" role="group" aria-label="Period" data-seg>
        <i class="pd__pick" data-pick aria-hidden="true"></i>
        <button type="button" class="pd__opt" data-span="0"><span>This week</span></button>
        <button type="button" class="pd__opt" data-span="1"><span>All time</span></button>
      </div>
      <div class="pd__stage" data-podium>
        <i class="pd__step" data-step="1" aria-hidden="true"></i>
        <i class="pd__step" data-step="0" aria-hidden="true"></i>
        <i class="pd__step" data-step="2" aria-hidden="true"></i>
      </div>
      <p class="pd__note"><span class="pd__clip"><span data-outnote>Maya leads by 4,300 steps.</span></span></p>
    </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.

15 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 “Leaderboard podium” 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 warm white, a rounded card: “Step challenge” and on the right “steps”. Below, two options in a row, “This week” and “All time”. Then the podium: three steps side by side, the middle one tallest and golden, the left one medium, the right one lowest. On each a person: a dark circle with the initial, the name and the steps: Maya in the middle with 62,400, Leo on the left, Ines on the right. At the bottom a box: “Maya leads by 4,300 steps.”. On entering the steps grow from the ground and the people drop onto them with a bounce. Moving the pointer onto Leo turns his circle golden and the box says “Leo · 58,100 steps · second”. Picking “All time” slides the tile and the three people hop: Leo to the low step, Maya to the medium one and Ines, last, to the tall one. Every hop is an arc; on landing the step squashes and comes back, the circle crouches for a moment, and the steps count to the new numbers.

How it works

The steps are fixed

Three blocks in a grid: first place in the middle, second on the left, third on the right. The heights belong to the place, not the person.

The people stand on top

Every person is an absolutely placed button: its middle on the middle of its place’s step, feet just above the edge.

The hop

When the place changes, the sideways move goes at an even pace while the height rises slowing down and falls speeding up: together they make an arc.

The landing

At the end of the arc the step shortens and springs back, the circle squashes and rises, and meanwhile the steps count.

Values to change

NameFileDefaultWhat it changes
ACCENTscript.js#e6a400The colour of the tallest step and of the person pointed at.
JUMPscript.js0.7How many seconds the hop from one step to another lasts.
HOPscript.js16How many pixels the hopper rises, above the taller of the two steps.
SPRINGscript.js1How much the steps give and the lander bounces.
LOOPscript.jstrueLeft alone, the demo’s pointer points at a person, changes ranking and starts again.

Try them in the Playground

When to use it

At the top of the leaderboard of a fitness app, a game, a challenge between colleagues or a school quiz, above the list of everyone else; the same hopping podium carries the month’s best sellers, a poll’s top three or the best of a fundraiser.

On phones

The card is at most 348 pixels wide and about 330 tall, and narrows with the screen: the steps share the width and the people are put back at the middle of theirs. On a phone a tap on a person points at them and another lets go.

With reduced motion

No hops and no giving steps: on changing ranking the people are on their new step at once and the steps are already the new ones. The colour change of whoever is pointed at stays. The demo’s pointer does not start.

Pitfalls

  • The place is not read from the step’s height alone: every person gives steps and place in aria-label, and the box writes them in words.
  • The people’s position is in pixels on the step’s middle: on resize and font load it is recomputed, but not while someone is in the air.
  • The step gives from the bottom: the transform’s origin is on its lower edge, or it would lift off the ground.
  • There are no numbers on the steps: height and colour are enough, and the real numbers are the step counts.
  • People and steps are invented.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 5.9 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