Skip to content
animorio
IT
Back to the library

AI summary card

Text, TransitionsGSAPAdvancedCompressed weight: Demo 10 KBGSAP 28 KBFreeDownload the zip

A text animation inside a real interface piece: the summary card of Quire, an invented AI reading app, in frosted glass on a near black page. Pick a length, Full, Brief or Gist: a light runs along the top edge and sweeps across the words while the AI reads, the phrases it keeps light up one after the other behind a violet glow and take a touch of weight, the others dim and blur. Then the dropped words fade where they stood and the kept ones close ranks word by word, each passing its place by a pixel and settling; a few change form on the way (three becomes Three, hiring becomes hire). The card shortens below a header that never moves, the word count rolls and Copy copies what is left.

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>
<!--
  "AI summary card" 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 AI summary card that shortens itself keeping the key phrases</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 summary card of Quire, an invented AI reading app. Pick a length (Full, Brief, Gist): the AI marks the
         phrases it keeps with a soft violet light, the other words dim and blur away, and the kept ones close ranks
         word by word on a spring. The word count rolls, the copy button copies what is left -->
    <div class="wrap" data-wrap>
      <article class="card" data-card>
        <span class="card__rim" aria-hidden="true"></span>
        <span class="card__edge" aria-hidden="true"><span class="card__beam" data-beam></span></span>

        <header class="card__head">
          <span class="card__icon" aria-hidden="true">
            <svg viewBox="0 0 20 20" data-spark>
              <path class="card__spark" d="M10 2.6c.5 3.6 1.9 5 5.4 5.4-3.5.5-4.9 1.9-5.4 5.4-.5-3.5-1.9-4.9-5.4-5.4 3.5-.4 4.9-1.8 5.4-5.4z"/>
              <path class="card__spark card__spark--small" d="M15.4 12.6c.2 1.4.8 2 2.2 2.2-1.4.2-2 .8-2.2 2.2-.2-1.4-.8-2-2.2-2.2 1.4-.2 2-.8 2.2-2.2z"/>
            </svg>
          </span>
          <span class="card__titles">
            <span class="card__title">Summary</span>
            <span class="card__sub">Quire reads it for you</span>
          </span>
          <span class="card__count" aria-hidden="true">
            <span class="roll" data-roll></span>
            <span class="card__count-unit">words</span>
          </span>
        </header>

        <div class="seg" role="group" aria-label="Summary length" data-seg>
          <span class="seg__thumb" data-thumb aria-hidden="true"></span>
          <button class="seg__btn" type="button" data-level="0" aria-pressed="true"><span class="seg__label">Full</span></button>
          <button class="seg__btn" type="button" data-level="1" aria-pressed="false"><span class="seg__label">Brief</span></button>
          <button class="seg__btn" type="button" data-level="2" aria-pressed="false"><span class="seg__label">Gist</span></button>
        </div>

        <div class="sum" data-sum>
          <p class="sum__text" data-text></p>
          <span class="sum__ghosts" data-ghosts aria-hidden="true"></span>
          <span class="sum__glint" data-glint aria-hidden="true"></span>
        </div>

        <footer class="card__foot">
          <span class="card__source">
            <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M4 1.8h5.2L12.6 5v9.2H4z"/><path d="M9 1.8V5.2h3.6M6 8.2h4.6M6 10.6h3.4"/></svg>
            <span class="card__source-name">Q3 field report</span>
            <span class="card__source-meta">12 pages</span>
          </span>
          <button class="copy" type="button" data-copy>
            <span class="copy__face" data-copy-face>
              <svg class="copy__icon" viewBox="0 0 16 16" aria-hidden="true">
                <g data-copy-sheets>
                  <rect x="5.4" y="5.4" width="8" height="8.6" rx="2"/>
                  <path d="M10.6 3.2V3a1.6 1.6 0 0 0-1.6-1.6H4A1.6 1.6 0 0 0 2.4 3v6.4A1.6 1.6 0 0 0 4 11h.2"/>
                </g>
                <path class="copy__check" data-copy-check pathLength="1" d="M3.4 8.6l3 3 6.2-6.8"/>
              </svg>
              <span class="copy__words" data-copy-words>Copy</span>
            </span>
          </button>
        </footer>
      </article>
    </div>
    <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.

25 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 “AI summary card” 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 two soft lights, warm at the top and violet at the bottom, and a little grain, a frosted glass card with round corners and a long shadow rises: at the top the violet tile with the drawn sparkle, ‘Summary’, the line ‘Quire reads it for you’ and on the right the pill with the count ‘44 words’. Below a three way switch, Full, Brief and Gist, with a glass pill that slides; then the summary of an invented store report, and at the bottom the file name ‘Q3 field report’, ‘12 pages’ and the Copy button. Choosing Brief the pill slides stretching and lands with a bounce, a light runs along the top edge, the sparkle turns a quarter, a light sweeps across the words and the phrases that stay light up one after the other behind a violet band, taking a touch of weight, while the others dim and blur. Then the dropped words blur away where they stood and the kept ones close ranks word by word, each passing its place by a pixel and settling; ‘three’ becomes ‘Three’, ‘staff’ becomes ‘Staff’, with a small cross fade inside the word. The card shortens below the header, which stays still, the count rolls to 27, the violet bands fade. With Gist one line is left, ‘Repeat orders up 18 percent; hire earlier for the holiday peak.’, and the count drops to 11; Copy is pressed, gives, comes back on a spring and draws the mint check with ‘Copied’. Back to Full the words make room and the missing ones come back out of the blur. The card's rim catches the light where the pointer goes.

How it works

Every word in three forms

The text is a list of words, each with its form in Full, Brief and Gist, or null when that length leaves it out. So a word can stay the same, go, appear (‘up’ only exists in Gist) or change form (hiring, hire): the summary is written as data and the script works out who stays, who goes and who arrives.

First mark, then move

The first beat moves nothing: the words that stay light up their violet band (a child of the word, scaleX from the left) and take weight through the --wg variable on the font's wght axis, in reading order; the ones that go drop to a third and blur. You see what the AI will keep before it does.

FLIP word by word

On the second beat the script measures where each word sits, puts the dropped words in a layer of ghosts at the same spot, applies the new length and measures again. Each kept word starts from its old place with x and y and goes back to zero with back.out (OVERSHOOT), staggered by STAGGER: it wraps and climbs lines as if it had really moved.

A header that stays still

The card is centred on its tallest height (the full text), measured at start and on every resize: when it shortens, only the bottom moves and the header stays put. The summary's height goes from the old value to the new one with a hair of bounce, then turns back to auto.

The count and the copy

The word count is made of columns from zero to nine that roll with a small bounce, one digit after the other. Copy really copies the summary that is left, gives under the finger, comes back on an elastic spring and swaps its two pages for a drawn check.

Values to change

NameFileDefaultWhat it changes
STAGGERscript.js0.014The beat between one word and the next, in seconds.
BLURscript.js6How much the dropped words blur as they go, in pixels.
OVERSHOOTscript.js1.25How far the kept words pass their new place before settling.
HIGHLIGHTscript.js0.9How strong the violet light behind the key phrases is (0 = none).
HOLDscript.js0.9How long the highlights stay after the words have moved, in seconds.
SPEEDscript.js12 = everything twice as fast, 0.5 = half.
LOOPscript.jstrueRepeats the walk on its own.

Try them in the Playground

When to use it

For an AI app that summarizes documents, emails, articles or meetings, for the recap at the top of a long blog or magazine article, for the notes in a dashboard: when you want to show what the AI kept instead of swapping the text in one go.

On phones

The same animation with adapted sizes: the card is as wide as the screen minus the margins, the text is sized on both width and height, the inner spacing shrinks with the height and under 360 pixels the page count leaves the footer; the header stays still there too.

With reduced motion

Nothing moves: changing length the text fades out and comes back already in its new form, the pill and the count change without sliding, Copy changes its label and check with a fade.

Pitfalls

  • GSAP writes each word's movement on the word itself, so the band and the letters are two children of it: the band has its scaleX, the letters their weight and blur. One owner per element, otherwise one wipes out the other.
  • The dropped words cannot blur where they stood after the change, because they no longer have a place: before the change a copy of each goes into a separate layer at the same spot, and the copy is what fades.
  • In the digit columns the inline-flex container stretches the columns to its own height and yPercent is then worked out on one row: it needs align-items: flex-start.
  • A new change halfway through closes everything at once in the right state (ghosts gone, transforms cleared, height back to auto) before measuring again, otherwise the FLIP measures words still in flight.

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