Skip to content
animorio
IT
All components

Presentation slides

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

A deck viewer: the slide in view leaves on the side it is pushed to and the next one arrives from the other on a spring, with its pieces rising one after the other. In place of a number there is the slide’s name, rolling between the two arrows; below, five thumbnails with a single ring sliding onto the right one and the note for the speaker, which changes with the slide.

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>
<!--
  "Presentation slides" 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>Presentation slides</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">
    <!-- a slide deck viewer: the slide gives way to the next one, the counter is the slide's name and not a
         number, the ring follows on the thumbnails and the speaker note changes with the slide -->
    <section class="sd" data-sd aria-roledescription="carousel" aria-label="Ridge spring update, slides" tabindex="0">
      <div class="sd__screen" data-screen>
        <article class="sd__slide sd__slide--a" data-slide data-name="Opening" data-note="Wait for the room, then start with the story.">
          <span class="sd__kicker" data-in>Ridge, spring update</span>
          <h2 data-in>Calmer<br>mornings</h2>
          <i class="sd__arc" data-in aria-hidden="true"></i>
        </article>
        <article class="sd__slide sd__slide--b" data-slide data-name="The problem" data-note="Ask who has felt this. Pause on the number.">
          <span class="sd__kicker" data-in>The problem</span>
          <b class="sd__big" data-in>41%</b>
          <p data-in>of the day goes into switching tabs</p>
        </article>
        <article class="sd__slide sd__slide--c" data-slide data-name="How it works" data-note="Left to right, one box at a time.">
          <span class="sd__kicker" data-in>How it works</span>
          <div class="sd__flow" data-in aria-hidden="true"><span>Collect</span><i></i><span>Sort</span><i></i><span>Reply</span></div>
          <p data-in>One inbox for mail, chat and tasks</p>
        </article>
        <article class="sd__slide sd__slide--d" data-slide data-name="Pricing" data-note="Team plan is the one to push.">
          <span class="sd__kicker" data-in>Pricing</span>
          <div class="sd__plans" data-in><span><em>Solo</em><b>€8</b></span><span class="is-main"><em>Team</em><b>€6</b></span></div>
          <p data-in>per person, per month</p>
        </article>
        <article class="sd__slide sd__slide--e" data-slide data-name="Questions" data-note="Leave ten minutes. Demo link is on screen.">
          <span class="sd__kicker" data-in>Thank you</span>
          <h2 data-in>Questions?</h2>
          <p data-in>ridge.example/demo</p>
        </article>
      </div>

      <div class="sd__bar">
        <button class="sd__nav" type="button" data-prev aria-label="Previous slide"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M9.800 3.800 5.600 8l4.200 4.200"></path></svg></button>
        <span class="sd__name" aria-live="polite"><span data-name-el>Opening</span></span>
        <button class="sd__nav" type="button" data-next aria-label="Next slide"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M6.200 3.800 10.400 8l-4.200 4.200"></path></svg></button>
      </div>

      <div class="sd__thumbs" data-thumbs>
        <i class="sd__ring" data-ring aria-hidden="true"></i>
        <button class="sd__thumb sd__slide--a" type="button" data-thumb aria-label="Opening"><i></i></button>
        <button class="sd__thumb sd__slide--b" type="button" data-thumb aria-label="The problem"><i></i></button>
        <button class="sd__thumb sd__slide--c" type="button" data-thumb aria-label="How it works"><i></i></button>
        <button class="sd__thumb sd__slide--d" type="button" data-thumb aria-label="Pricing"><i></i></button>
        <button class="sd__thumb sd__slide--e" type="button" data-thumb aria-label="Questions"><i></i></button>
      </div>

      <p class="sd__note"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3 4.500h10M3 8h10M3 11.500h6"></path></svg><span class="sd__noteroll"><span data-note-el>Wait for the room, then start with the story.</span></span></p>
    </section>

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

36 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 “Presentation slides” 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 black, a dark card: at the top the sixteen by nine screen with the first slide, pale, “Ridge, spring update” and the large title “Calmer mornings” with a violet disc peeking from the corner. Below, two arrows and between them the slide’s name, “Opening”; then five thumbnails, the first one lit inside a pale ring; at the bottom a grey line with the note for the speaker. Press the right arrow and the slide shrinks and slides away to the left, the next one enters from the right and settles on a spring: it is dark, with a large violet “41%” rising after the kicker, followed by the line below. Meanwhile the name rolls to “The problem”, the ring slides onto the second thumbnail going slightly past it and the note changes. Then “How it works”, with the three boxes in a row, and “Pricing”. Touch the last thumbnail and it jumps to “Questions”, all violet; the forward arrow goes off. Going back, the slides enter from the left. The deck also turns by dragging the screen with a finger and with the keyboard arrows.

How it works

The slides on top of each other

All the slides occupy the same box and are hidden, except the one in view. On a change only the pair leaving and entering is animated; the others are put back to zero.

The direction

If the slide’s number goes up, the one leaving goes left and the one entering comes from the right; if it goes down, the opposite. SHIFT says how far, in percent of the width.

The pieces inside

The marked elements inside the entering slide rise twelve pixels one after the other, STAGGER seconds apart, when the slide is already almost in place.

A single ring

The thumbnails’ ring is one element: its position is a calc on the slide’s number in a CSS variable, which GSAP takes to the new value on a spring. Nothing to measure on resize.

The name, not the number

Each slide carries its name and its note in two attributes: the script rolls them into place, and the thumbnails use them as labels for those who cannot see.

Values to change

NameFileDefaultWhat it changes
ACCENTscript.js#7c8cffThe colour of the deck: kickers, numbers and solid slides.
SLIDEscript.js0.75How long the change from one slide to the next lasts.
SHIFTscript.js34How far the leaving or entering slide moves, in percent of its width.
STAGGERscript.js0.07The delay between one piece and the next inside the entering slide.
SPRINGscript.js1How much the arriving slide and the thumbnails’ ring bounce: 0.3 = a little, 2 = a lot.
LOOPscript.jstrueLeft alone, the demo’s pointer goes forward, jumps to the last slide and returns to the first.

Try them in the Playground

When to use it

In the viewer of a presentation or documents app, on a conference talk’s page, in a landing page that shows the pitch, or for a course’s slides: wherever there is a deck to turn with the thumbnails below.

On phones

The same card, as wide as the screen minus the margins and never taller than the box (the width tightens if height is short): the slides turn by dragging the screen, the arrows are 32 pixels and the titles shrink with the width.

With reduced motion

No slides and no springs: the new slide takes the old one’s place with a fade, with its pieces already in place; the ring is at once on the right thumbnail and name and note change without rolling. The demo does not move by itself.

Pitfalls

  • The deck, the product and the numbers are made up: in a real app the slides are real images or pages, and the thumbnails their reduced copies.
  • No “2 of 5” as a graphic: in place of the count there is the slide’s name, which also says where you are.
  • When slides change quickly the previous pair’s tweens must be stopped and the other slides put back to zero, otherwise two are left half way.
  • The slide is moved by GSAP and so are its pieces, but on different elements: so the slide’s spring and the pieces’ rise do not overwrite each other.
  • On the first and last slide the arrow that is not needed is disabled, not hidden: the row does not change width.
  • The card also uses the window’s height to decide how wide it is: in a short box the sixteen by nine screen shrinks instead of spilling below.

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