Skip to content
animorio
IT
All components

Live league standings

Tables, Transitions, HoverGSAP, CSS onlyMediumCompressed weight: Demo 10 KBGSAP 28 KBFreeDownload the zip

The live table of an invented football league, six teams in a dark glass card over a pitch green light, like a Dribbble shot. While the last round is played a goal arrives: a message slides into the row of the team, points and goal difference roll up like an odometer, and when a team passes the one above the two rows swap places with a FLIP on a spring. The row that climbs is lifted, takes the accent light for an instant and the drawn arrows light up, up for one and down for the other. Live is not a dot: it is the word LIVE with the minute and a bar that runs to the final whistle.

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>
<!--
  "Live league standings" 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>The live league standings table with the teams that swap places</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" data-stage>
    <!-- a soft pitch green light behind the glass and a cold one from the other side -->
    <span class="aura aura--a" data-aura-a aria-hidden="true"></span>
    <span class="aura aura--b" data-aura-b aria-hidden="true"></span>

    <div class="wrap" data-wrap>
      <article class="board" data-card aria-label="Live league standings">
        <span class="board__pitch" aria-hidden="true"></span>
        <span class="board__light" aria-hidden="true"></span>
        <span class="board__rim" aria-hidden="true"></span>

        <div class="board__body" data-body>
          <header class="head">
            <span class="head__title">
              <span class="head__league">Meridian League</span>
              <span class="head__day">Matchday 27 · 3 matches in play</span>
            </span>
            <span class="state" data-state>
              <span class="state__word" data-state-word>Live</span>
              <span class="state__min" data-minute>67'</span>
            </span>
          </header>

          <div class="clock" aria-hidden="true">
            <span class="clock__track"></span>
            <span class="clock__fill" data-clock></span>
            <span class="clock__half"></span>
          </div>

          <div class="cols" aria-hidden="true">
            <span class="cols__pos"></span>
            <span class="cols__team">Team</span>
            <span class="cols__n cols__p">P</span>
            <span class="cols__n">GD</span>
            <span class="cols__n cols__pts">Pts</span>
            <span class="cols__mv"></span>
          </div>

          <div class="table">
            <ol class="ranks" aria-hidden="true">
              <li>1</li><li>2</li><li>3</li><li>4</li><li>5</li><li>6</li>
            </ol>
            <ol class="rows" data-rows aria-label="Standings"></ol>
          </div>

          <footer class="fixtures" data-fixtures aria-label="Matches in play"></footer>
        </div>
      </article>
    </div>
    <p class="sr" aria-live="polite" data-announce></p>
  </main>

  <svg width="0" height="0" style="position:absolute" aria-hidden="true">
    <symbol id="ball" viewBox="0 0 16 16"><circle cx="8" cy="8" r="6.3" fill="none" stroke="currentColor" stroke-width="1.3"/><path d="M8 5.2l2.6 1.9-1 3.1H6.4l-1-3.1z" fill="currentColor"/><path d="M8 5.2V1.9M10.6 7.1l3-1M9.6 10.2l1.9 2.6M6.4 10.2l-1.9 2.6M5.4 7.1l-3-1" fill="none" stroke="currentColor" stroke-width="1.1"/></symbol>
  </svg>

  <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.

30 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 “Live league standings” 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 near black page, with a pitch green light on one side, a cold one on the other and a very fine grain, the standings card of the Meridian League stands alone, in smoked glass with a one pixel edge that catches the light at the top and faint stripes like the mown grass of a pitch. At the top the league name, under it Matchday 27 and three matches in play, on the right the LIVE tag with the minute, 67', and below a hairline bar filling with lime green up to the ninetieth, with a notch halfway for half time. Then the six teams: the positions sit in a still column on the left, and each row has the shield crest in its colour with its letter, the name, the matches played, the goal difference, the points and a drawn dash. At the bottom the three matches in play, HAR 1–1 NOR, VAL 0–0 ASH, EAS 0–0 KIN. A goal arrives: in the row of Vale Wanderers the name slides away upwards and in its place comes GOAL with the ball rolling in and the scorer’s name with the minute; in the match at the bottom the score rolls to 1–0 and the chip lights up for a moment. The points roll up from 53 to 55, the goal difference from +8 to +9, and Ashford’s go down by one. Then the overtake: the two rows swap places, the one that climbs is lifted on a solid fill with its shadow, widens by a hair and lands in its place on a spring, while the other steps aside fading and comes back. The climbing row takes the lime light for an instant with a band crossing it, and in place of the dash the arrows light up: up in lime for the one that climbs, down in coral for the one that drops. Then the Easton Port goal that passes Kingsmere, then the Harbour City one that takes first place. At the ninetieth LIVE becomes Full time, the table holds for a few seconds, the rows fade and the round starts again. With the mouse over it a soft light follows the pointer and lights the edge, the row under the pointer brightens and a click marks it with the lime hairline and the coloured name, to follow your own team.

How it works

Still positions, moving teams

The column of positions (1-6) is a separate list that never moves; the team rows are the items of another ordered list. So when two teams swap, the number stays in its place and only who sits next to it changes, like in a real table.

FLIP on a spring

First the position of the two rows is read with getBoundingClientRect, then the row is really moved in the DOM with insertBefore (the order stays right for screen readers too), read again and the difference is the start: GSAP takes y from that jump to zero with a back.out. The climbing row gets zIndex 2, a solid fill with a shadow and a scale of 1.03 that springs back to 1; the one that drops fades to 0.18 while they cross, so the text never overlaps.

The goal inside the row

The name sits in a window one row tall over a column of two lines: the name and the goal message with the drawn ball. GSAP moves the column by yPercent -50 on a spring and brings it back after a little more than two seconds; the ball comes in turning 200 degrees. The minute in the message is read from the clock at the moment of the goal.

Points and goal difference as an odometer

Each digit is a 0-9 strip in a window one digit tall: to change it the strip moves by -digit × 10 in yPercent with a back.out, starting from the rightmost digit and staggering the others by 60 ms. The minus sign of the goal difference is the real mathematical character, taken with String.fromCharCode.

The round in one loop

A single timeline plays the round: the clock goes from START_MINUTE to 90 in 3.7 × PACE seconds redrawing minute and bar (scaleX), the three goals land at 0.5, 1.5 and 2.5 × PACE, then Full time, HOLD seconds still, the rows fade, the values go back to the start and a new timeline begins. It starts from the load event, so poster and video always land on the same moment.

Values to change

NameFileDefaultWhat it changes
LEAGUEscript.jsMeridian LeagueThe name of the league at the top of the card.
PACEscript.js3.6Seconds between one goal and the next (the round lasts 3.7 times as long).
SPRINGscript.js1How springy the moves are: 0.4 calm, 2 very bouncy.
GLOWscript.js1How strong the light of the climbing row is: 0 off, 1.6 bright.
HOLDscript.js2.8How many seconds the table stays on Full time before the round plays again.
START_MINUTEscript.js67The minute on the clock when the round starts.

Try them in the Playground

When to use it

For the app or site of a league, a club, a sports paper or a fantasy football game: the table that changes while the matches are played, with the goals arriving and the overtakes you can see. The same card holds any live ranking: an eSports tournament, a points race, a sales leaderboard.

On phones

On the phone the card is 90% of the screen wide and the rows follow the height too, so it fits the box; under 360 pixels the matches played column hides to leave room for the name and the goal message. There is no hover: the edge light stays at the top and a tap marks the row like a click.

With reduced motion

Nothing moves: the rows change place and reappear with a fade, the digits change in place with a fade, the goal message takes the place of the name with a fade, the arrows light up without rising and the light band does not cross the row.

Pitfalls

  • In the FLIP the two rows crossed and, with the transparent glass fill, the words of one could be read through the other: the climbing row gets a solid fill with a shadow only while it moves, and the one that drops fades almost completely at the moment they cross.
  • With font-variant-numeric tabular-nums on the match score digits Mona Sans used the slashed zero, different from the one of the points: the digits sit in windows of equal width anyway, so there tabular figures are not needed and the zero is back to normal.
  • In the phone box the goal message ended with an ellipsis after the scorer’s first letter: under 360 pixels the matches played column, always the same, hides.
  • The loop started when the script was read and the poster landed on different moments: it starts from the page’s load event.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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