Skip to content
animorio
IT
Back to the library

Timed line carousel

Transitions, Hover, ImagesGSAP, CSS onlyMediumCompressed weight: Demo 6.7 KBGSAP 28 KBFreeDownload the zip

The four steps of Sennet, a made-up skin clinic, in a row under one single line: a bar fills it at a steady pace, five seconds per step, and the step under the filled part lights up while the others wait at 10%. Hover a step and the bar slides to the start of its stretch; on a phone the steps sit on top of each other and a tap moves to the next. Minimal style. From the «Why Odyssée?» carousel of the Odyssée clinic site, Awwwards Site of the Day on 8/10/2026.

Rebuilt from scratch studying odysseeclinic.com.au by Nightjar: the idea is theirs; code, copy and images are ours. Read how it’s made

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>
<!--
  "Timed line carousel" 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>Sennet Clinic, slow care in four steps</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/newsreader@5.3.0/opsz.css">
  <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>
  <!-- Sennet, a made-up skin clinic. Four steps of care in a row, one timed line over them: a single bar fills at a
       steady pace, five seconds per step, and the step under the filled part is the one that is lit; the others wait
       at 10%. Hover a step and the bar jumps to the start of its stretch. On a phone the steps sit on top of each
       other and a tap moves to the next one. The small round button pauses the line. -->
  <main class="page">
    <section class="why" data-why aria-roledescription="carousel" aria-label="Why Sennet, four steps of care">
      <h1 class="title" data-title>Slow care, in four steps.</h1>

      <div class="head">
        <p class="label" data-in>Why Sennet?</p>
        <p class="now" aria-live="polite"><span class="now__mask" data-now><span class="now__word">Consult</span></span></p>
        <button class="pause" type="button" data-pause aria-pressed="false" aria-label="Pause the steps">
          <svg viewBox="0 0 20 20" aria-hidden="true">
            <path class="pause__a" d="M7 5.5 V14.5" />
            <path class="pause__b" d="M13 5.5 V14.5" />
            <path class="pause__play" d="M7.5 5.2 L15 10 L7.5 14.8 Z" />
          </svg>
        </button>
      </div>

      <div class="line" data-line aria-hidden="true">
        <span class="line__track" data-track></span>
        <span class="line__bar" data-bar></span>
        <span class="line__tick" data-tick style="--at: 25%"></span>
        <span class="line__tick" data-tick style="--at: 50%"></span>
        <span class="line__tick" data-tick style="--at: 75%"></span>
      </div>

      <div class="steps" data-steps>
        <article class="step is-active" data-step tabindex="0" aria-label="Consult">
          <figure class="step__photo"><img src="visita.webp" alt="A doctor in a white coat taking notes at a desk during a consultation" width="960" height="640" style="--fx: 60%"></figure>
          <h2 class="step__name">Consult</h2>
          <p class="step__copy" data-copy>A first visit of forty five minutes. We look, we listen, and nothing is booked on the day.</p>
        </article>
        <article class="step" data-step tabindex="0" aria-label="Plan">
          <figure class="step__photo"><img src="flaconi.webp" alt="Three amber dropper bottles with blank labels on white" width="1024" height="683" style="--fx: 50%"></figure>
          <h2 class="step__name">Plan</h2>
          <p class="step__copy" data-copy>A written plan with doses, dates and costs, to take home and think over.</p>
        </article>
        <article class="step" data-step tabindex="0" aria-label="Treat">
          <figure class="step__photo"><img src="crema.webp" alt="A woman with her eyes closed holding a small jar of cream" width="960" height="640" style="--fx: 38%"></figure>
          <h2 class="step__name">Treat</h2>
          <p class="step__copy" data-copy>The same doctor every time, in a calm room, without hurry.</p>
        </article>
        <article class="step" data-step tabindex="0" aria-label="Aftercare">
          <figure class="step__photo"><img src="asciugamani.webp" alt="Rolled bath towels in soft grey and mauve" width="1024" height="682" style="--fx: 50%"></figure>
          <h2 class="step__name">Aftercare</h2>
          <p class="step__copy" data-copy>A check at two weeks, then every season. The plan changes only if your skin asks.</p>
        </article>
      </div>
    </section>
  </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 “Timed line carousel” 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

Sennet tells its four steps of care in a row, each with a photo, a serif name and two lines: Consult with the doctor taking notes at the desk, Plan with three amber dropper bottles, Treat with the woman with closed eyes and her jar of cream, Aftercare with grey and mauve rolled towels. Above sits a thin line, and a night blue bar fills it at a steady pace: the step under the filled part is lit, its photo settling slowly and its words rising one after the other, the others wait at 10%. Each time the bar passes a tick, the tick darkens and gives a small kick, and in the header the name of the step rolls away for the new one. Hover a step and the bar slides to the start of its stretch; the round button folds the two pause bars into a triangle and stops the line. On a phone you see one step at a time and a tap moves to the next.

How it works

One single line

As on the site, there is no bar per step: one tween takes the bar from scaleX 0 to 1, linear, in STEP times the number of steps (5 s by 4 = 20 s), with repeat -1. The bar has its transform-origin on the left and sits over a track at 20% opacity.

The lit step is worked out

In onUpdate the index is Math.min(Math.floor(progress × n), n − 1): when it changes, a class lights the step and CSS does the rest, opacity from .1 to 1 in 300 ms on cubic-bezier(.16,1,.3,1), and the copy that shows only for it.

The hover

On the site a hover runs tween.progress(i / n) and the bar jumps. Here the line pauses and GSAP takes progress to i / n in .5 s with expo.out, then plays on; while it slides onUpdate does not change step, so the ones in between do not flicker. With JUMP at 0 it jumps like the site.

Ticks and header

Three 7 px ticks sit on the borders of the stretches: the ones already passed turn night blue and the last one does scaleY 1.9 → 1 with back.out. In the header, instead of the «1:4» counter, the step name comes in from yPercent 105 inside a mask while the old one leaves upwards.

Words and photo

The copy is split into words that rise 10 px in 1 s expo.out, .04 s apart (the site's entrance numbers); the lit photo settles from scale 1.06 to 1 over the five seconds of its stretch, with a soft shadow under it and a light grain on top.

Phone, keys and pause

Under 760 px the steps share the same grid cell and a tap goes to the next one with (i + 1) % n (the site has m + 1 % g, which works by chance). The arrow keys move the focus and the focus lights the step; the round button stops and restarts the line, which the site does not have.

Values to change

NameFileDefaultWhat it changes
STEPscript.js5Seconds the bar spends on each step (the site uses 5).
OFFscript.js0.1Opacity of the steps that wait, from 0 to 1 (the site uses .1).
FADEscript.js0.3Seconds a step takes to light up or dim (the site uses .3).
JUMPscript.js0.5Seconds the bar slides to a hovered step; 0 jumps at once like the site.
SETTLEscript.js1.06Scale the lit photo starts from before it settles to 1.
WORDSscript.js0.04Seconds between the words of the copy (the site uses .04).

Try them in the Playground

When to use it

To explain a method, a process or the steps of a service (a clinic, a studio, an app, an agency) without sliding them away: you see them all together and time lights them one at a time.

On phones

On a phone the steps sit on top of each other and only one shows, its photo measured on the height too; a tap moves to the next and the bar slides to its stretch. The pause button stays next to the step name.

With reduced motion

No movement: the title and the steps fade in, the step name changes with a fade, the photo stays still and the bar jumps at once to the chosen step. The line keeps filling, since it tells how long is left, and the pause stops it.

Pitfalls

  • With repeat -1, progress() is the progress of the current loop: exactly what is needed to work out the step, and tweening progress slides the bar within the same loop.
  • While the bar slides to a far step, onUpdate would pass through the ones in between and make them flicker: a flag (jumping) holds it until the slide is over.
  • On the site the tap uses (m + 1 % g) / g, which reads m + (1 % g): it only works because at the last step progress 1 restarts the tween. Here it is written (i + 1) % n.
  • The opacity of the steps is CSS with a class, the photo and the words are GSAP on child elements: one element for GSAP, the child for CSS.

Libraries

GSAP 3.15.0, Newsreader (font variabile) 5.3.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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