Skip to content
animorio
IT
Back to the library

Testimonial rotator

Text, TransitionsGSAP, CSS onlyMediumCompressed weight: Demo 6.4 KBGSAP 28 KBFreeDownload the zip

The testimonials section of the landing page of Northwave, a made-up team software: one wide card with the quote in an elegant serif, the person, the company and the number the quote is about. Every few seconds another team speaks: the old words drop and fade, the new ones rise on a spring, the name and role decode letter by letter and the number rolls. The row of initials picks a quote, and the line under the lit initials shows how long until the next one.

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>
<!--
  "Testimonial rotator" 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>Testimonial rotator</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/newsreader@5.3.0/opsz.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <main class="stage">
    <!-- the testimonials section of a made-up product landing page: one wide card with the quote, the person, the
         company and the number the quote is about. Every few seconds the next team speaks: the old words drop away,
         the new ones rise on a spring, the name decodes letter by letter and the number rolls. The row of initials
         picks a quote; hovering the card pauses it; arrows and swipes work too. -->
    <section class="wall" data-wall aria-roledescription="carousel" aria-label="What teams say about Northwave">
      <header class="wall__head">
        <p class="eyebrow">Loved by teams</p>
        <h1 class="title">Calmer weeks, in their words.</h1>
      </header>

      <article class="card" data-card tabindex="0" aria-live="polite">
        <span class="card__sheen" aria-hidden="true"></span>
        <svg class="mark" data-mark viewBox="0 0 48 36" aria-hidden="true"><path d="M4 34V22C4 11 9.5 4.5 19 2l1.8 3.6C14.6 8 12 12 11.8 17H19v17Zm25 0V22c0-11 5.5-17.5 15-20l1.8 3.6C39.6 8 37 12 36.8 17H44v17Z"/></svg>
        <blockquote class="quote" data-quote></blockquote>
        <footer class="who">
          <span class="who__face" data-face aria-hidden="true"></span>
          <span class="who__text">
            <span class="who__name" data-name></span>
            <span class="who__role" data-role></span>
          </span>
          <span class="metric" data-metric>
            <span class="metric__num"><span data-num>0</span><span data-suf></span></span>
            <span class="metric__label" data-label></span>
          </span>
        </footer>
      </article>

      <nav class="faces" data-faces aria-label="Choose a team"></nav>
      <p class="hint" aria-hidden="true">Hover to pause, arrows to move</p>
    </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.

18 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 “Testimonial rotator” 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

The «Loved by teams» section of a landing page: the heading above, in the middle a white card with violet quote marks, the large quote, a hairline and below it the person with their initials, role and company, and on the right the number the quote is about in a pale violet pill («42% fewer status meetings»). Below, four circles with the teams’ initials: the lit one is bigger, with a ring, and a line filling up until the change. On change the quote’s words drop and fade one after another, the quote marks tilt, the card grows or shrinks on a spring, the new words rise and land with a small bounce, the name and role decode out of random letters, the number rolls and a light crosses the card. Hovering the card stops the rotation; a click on a circle, the arrows or a swipe change the quote.

How it works

Words in a row

Each quote is split into words, each one an inline-block span; words between asterisks become a violet em. That way every word can drop and rise on its own.

The exit

The old words drop 0.45 em and fade in 0.28 seconds, 0.012 seconds apart, starting from the side you are moving towards; the quote marks tilt and the number shrinks a little.

Height on a spring

Before the text changes the old height is read, after it the new one, and GSAP goes from one to the other with back.out: the card grows or shrinks without jumps.

The entrance

The new words rise from 0.7 em with back.out(1.5), 0.03 seconds apart; the quote marks straighten on a spring and a light crosses the card.

The name that decodes

A tween from 0 to 1, 0.035 seconds per letter long, rewrites the name every frame: the letters already settled from the left, the rest random. Spaces, commas and & stay where they are.

The automatic loop

A gsap.delayedCall moves to the next quote, and a line under the lit initials fills in the same time; hovering the card pauses both.

Values to change

NameFileDefaultWhat it changes
INTERVALscript.js5.2Seconds each quote stays before the next.
WORD_STAGGERscript.js0.03Seconds between one word and the next as they rise.
RISEscript.js0.7How far the words rise from, in em.
SPRINGscript.js1.5How much the words overshoot as they land.
SCRAMBLEscript.js0.035Seconds each letter of the name scrambles.
RINGscript.js1.16How much the chosen initials grow.
ROLLscript.js0.9Seconds the number takes to roll.

Try them in the Playground

When to use it

In the testimonials section of a landing page for software, an app or a service, below the pricing or before the final call to action.

On phones

Everything is in em and the size follows the window’s width and height together; under 560 pixels the card tightens and the number moves under the name. A swipe on the card changes the quote.

With reduced motion

No rising words and no scrambled letters: the quote changes with a fade, the name and the number appear already written.

Pitfalls

  • The new height is read with scrollHeight right after the text changes, then animated from the old one and removed with clearProps: left fixed, the text would spill out of the card on resize.
  • The automatic loop uses gsap.delayedCall, not setTimeout, so it pauses together with the line under the initials.
  • The scramble skips spaces and punctuation: scrambling them makes the line width jitter.

Libraries

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

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

Testing

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