Skip to content
animorio
IT
All components

Conference schedule tabs

Tabs, Transitions, HoverGSAP, CSS onlyMediumCompressed weight: Demo 11 KBGSAP 28 KBFreeDownload the zip

The schedule tabs of a made-up conference of ideas, Fernway Ideas: Morning, Afternoon and Evening in a light track, with the white pill travelling to the chosen tab on a real spring, stretching as it runs and settling with a pixel of bounce. Below, the talks (time, length, title, speaker, room) leave on one side and come in from the other, the way you went, one after the other; hover a talk and it opens with its summary and a Save bookmark, and the saved count on top rolls.

The code

A folder that runs on its own: index.html, style.css, script.js and the libraries from a CDN.

<!doctype html>
<!--
  "Conference schedule tabs" 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 conference schedule tabs with the talks that slide in</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>
    <!-- the schedule of Fernway Ideas, an invented one-day conference of ideas: three tabs (Morning, Afternoon,
         Evening) with an indicator that travels on a spring, and the talks underneath that leave on one side and
         come in from the other, the way you went. Hover or focus a talk and its row opens with the summary. -->
    <section class="prog" data-prog aria-labelledby="prog-title">
      <header class="prog__head">
        <span class="prog__mark" aria-hidden="true">
          <svg viewBox="0 0 24 24"><path class="prog__mark-a" d="M12 3.2c3.6 3 5.2 6.1 5.2 9.1a5.2 5.2 0 0 1-10.4 0c0-3 1.6-6.1 5.2-9.1z"/><path class="prog__mark-b" d="M12 9.4v10.4M12 14.2l2.6-2.4M12 16.8l-2.4-2.1"/></svg>
        </span>
        <span class="prog__meta">
          <span class="prog__brand" id="prog-title">Fernway Ideas</span>
          <span class="prog__sub">Sat 14 Mar · Harbour Hall</span>
        </span>
        <span class="prog__saved" aria-live="polite">
          <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M4.5 2.5h7v11L8 10.9l-3.5 2.6z"/></svg>
          <span class="prog__roll" data-saved-roll><span data-saved>1</span></span>
          <span class="prog__saved-word">saved</span>
        </span>
      </header>

      <div class="tabs" role="tablist" aria-label="Schedule" data-tabs>
        <span class="tabs__ind" data-ind aria-hidden="true"><span class="tabs__shine"></span></span>
        <button class="tab" role="tab" type="button" id="tab-morning" aria-controls="talks" data-tab="morning" aria-selected="true">
          <span class="tab__word">Morning</span><span class="tab__count" data-count>3</span>
        </button>
        <button class="tab" role="tab" type="button" id="tab-afternoon" aria-controls="talks" data-tab="afternoon" aria-selected="false" tabindex="-1" data-autoclic>
          <span class="tab__word">Afternoon</span><span class="tab__count" data-count>3</span>
        </button>
        <button class="tab" role="tab" type="button" id="tab-evening" aria-controls="talks" data-tab="evening" aria-selected="false" tabindex="-1">
          <span class="tab__word">Evening</span><span class="tab__count" data-count>3</span>
        </button>
      </div>

      <div class="talks" id="talks" role="tabpanel" aria-labelledby="tab-morning" data-panel>
        <ol class="talks__list" data-list></ol>
      </div>

      <footer class="prog__foot">
        <span class="prog__span" data-span>09:30 to 11:45</span>
        <span class="prog__rooms">Main stage · Glasshouse · Loft</span>
      </footer>
    </section>
    <svg class="pointer" viewBox="0 0 24 24" aria-hidden="true" data-pointer><path d="M5 3.5 18.5 12 12.4 13.6 9.4 19.6z"/></svg>
    <p class="sr" aria-live="polite" data-live></p>
  </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.

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 “Conference schedule tabs” 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

A warm white card with the schedule of a conference day. On top the mark, the date and the hall, and a pill with the number of saved talks. Below, three tabs in a sunken track: tap one and the white pill runs there on a spring, stretching a little with its speed and stopping with a settle; the chosen word widens on the wdth axis and its number turns green. The talks of the previous session fade out towards the side you come from, the new ones come in from the other side one after the other with a pixel of bounce, the time slightly behind the title, and the card changes height smoothly. On hover (or with the Tab key) a talk rises onto a white sheet and opens with its summary and the bookmark; Save adds it to your day and the counter on top rolls. The first morning talk is on now: Live with three small moving bars.

How it works

The pill on a real spring

The pill is an absolutely positioned element in the track. A requestAnimationFrame loop integrates two springs, x and width, towards the chosen tab (measured with getBoundingClientRect): acceleration = STIFFNESS times the distance minus DAMPING times the speed, with the time step capped at 1/30 s. The drawn width grows with the speed (STRETCH), so the pill stretches as it runs; the loop stops when everything is still.

Talks that go the right way

On a tab change the new index is compared with the old one: the previous list goes absolute and leaves towards -direction by SLIDE pixels, fading, while the new one comes in from +direction with back.out and a STAGGER seconds stagger. The time starts a little after the title, and the panel height goes from the old one to the new one in half a second.

The row that opens with its summary

Each talk has a hidden part at height 0: on mouse hover or keyboard focus GSAP takes it to height auto in OPEN_TIME seconds, the text fades in and the bookmark arrives with a bounce; behind, a white sheet with a shadow rises from 98.5% to 100%. On a phone the tap stands in for hover.

The rolling counter

Save changes aria-pressed and the saved count: the old digit leaves upwards (or downwards when it drops) and the new one comes in from the other side with back.out, inside a window one line tall.

Keyboard and pilot

The tabs are a tablist: arrows, Home and End change session. A drawn pointer opens a talk, saves it, goes to the afternoon and the evening and back to the morning the other way, then unsaves it; at the first real move, tap or key it stops.

Values to change

NameFileDefaultWhat it changes
STIFFNESSscript.js260How hard the spring pulls the pill to its tab.
DAMPINGscript.js22How fast the pill stops wobbling (lower means more bounce).
STRETCHscript.js0.045How much the pill stretches with its speed.
SLIDEscript.js26Pixels the talks travel when they leave and come in.
STAGGERscript.js0.055Seconds between one talk and the next.
OPEN_TIMEscript.js0.42Seconds for a talk to open with its summary.
SPEEDscript.js1Pilot speed.
LOOPscript.jstrueThe pilot starts over.

Try them in the Playground

When to use it

On the site of a conference, a festival, a series of talks or a course: the schedule split by part of the day (or by days, or rooms), with the details of each talk opening without leaving the page. It also works for a restaurant's hours, gym classes or the sessions of an online event.

On phones

The same animation with adapted sizes: the card is 92% of the screen wide, rows and tabs also follow the window height, so it all fits the phone box. A tap on a talk stands in for hover and opens it; under 360 pixels the list of rooms at the bottom is hidden.

With reduced motion

Nothing moves: the pill jumps to the tab with a fade, the talks swap with a fade, rows open at once and the Live bars stay still; the pilot's pointer is hidden.

Pitfalls

  • The pill's transform is written by the spring loop: a gsap.from with scaleX on entrance wiped it and the pill started from the left. The pill only fades in.
  • On a phone focus comes before the click: opening on focus and closing on click shut the row just opened. Focus opens only when it is :focus-visible (keyboard).
  • The old and the new list share the panel for a moment: the old one goes absolute, so the new one measures right and the panel height goes from one to the other without jumps.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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