Skip to content
animorio
IT
Back to the library

Chat bubble FAQ

Hover, TextGSAP, CSS onlyMediumCompressed weight: Demo 6.5 KBGSAP 28 KBFreeDownload the zip

The FAQ of Pantile, a made-up branding studio, told as a chat. Every question is a speech bubble: opening it, it shrinks to half its width and takes a terracotta outline, and the studio’s answer grows out of the bottom right corner with a small bounce; the round mark pops in, three dots type for a moment, the answer rises into place and the time and a read mark settle underneath. One open at a time, and closing plays it all backwards. The timings come from the Two26 Studio website.

Rebuilt from scratch studying two26.studio by ZzStudio: 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>
<!--
  "Chat bubble FAQ" 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>Pantile Studio, questions</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/schibsted-grotesk@5.3.0/index.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/geist-mono@5.3.0/index.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- The FAQ of Pantile, a made-up branding studio, told as a chat. Each question is a speech bubble; opening it
       shrinks the bubble to half its width and outlines it, then the studio answers from the bottom right corner:
       its round mark pops in, three dots say it is typing, the answer rises and the time and a read mark settle. -->
  <main class="scena">
    <section class="chat" aria-label="Questions for Pantile Studio" data-chat>
      <header class="chat__testa">
        <span class="marchio" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M5 13.6c2.2 0 2.2-6.4 4.6-6.4s2.4 6.4 4.8 6.4 2.4-6.4 4.6-6.4"/><path d="M5 16.8h14"/></svg></span>
        <span class="chat__nome">
          <strong>Pantile Studio</strong>
          <span class="chat__stato">Usually replies in a few minutes</span>
        </span>
        <span class="chat__ora" aria-hidden="true">Mon–Fri, 9–6</span>
      </header>

      <ul class="faq" data-faq>
        <li class="voce" data-voce>
          <button class="domanda" type="button" aria-expanded="false">
            <span class="domanda__testo">How long does a brand identity take?</span>
            <span class="segno" aria-hidden="true"><svg viewBox="0 0 20 20"><path d="M10 5.5v9M5.5 10h9"/></svg></span>
          </button>
          <div class="risposta" role="region" data-risposta>
            <div class="risposta__riga">
              <div class="bolla">
                <span class="puntini" aria-hidden="true"><i></i><i></i><i></i></span>
                <p class="bolla__testo">Six to eight weeks, from the first call to the final files. Small refreshes can be done in three.</p>
              </div>
              <span class="marchio marchio--piccolo" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M5 13.6c2.2 0 2.2-6.4 4.6-6.4s2.4 6.4 4.8 6.4 2.4-6.4 4.6-6.4"/><path d="M5 16.8h14"/></svg></span>
            </div>
            <p class="meta"><span class="meta__ora">10:42</span><span class="letto">Read<svg viewBox="0 0 22 12" aria-hidden="true"><path pathLength="1" d="M1.5 6.4 4.8 9.6 11 2.6"/><path pathLength="1" d="M8.6 9.4l.3.2L15.2 2.6"/></svg></span></p>
          </div>
        </li>
        <li class="voce" data-voce>
          <button class="domanda" type="button" aria-expanded="false">
            <span class="domanda__testo">What does a project cost?</span>
            <span class="segno" aria-hidden="true"><svg viewBox="0 0 20 20"><path d="M10 5.5v9M5.5 10h9"/></svg></span>
          </button>
          <div class="risposta" role="region" data-risposta>
            <div class="risposta__riga">
              <div class="bolla">
                <span class="puntini" aria-hidden="true"><i></i><i></i><i></i></span>
                <p class="bolla__testo">Identities start at €9,000. We send a fixed quote after the first call, so nothing grows later.</p>
              </div>
              <span class="marchio marchio--piccolo" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M5 13.6c2.2 0 2.2-6.4 4.6-6.4s2.4 6.4 4.8 6.4 2.4-6.4 4.6-6.4"/><path d="M5 16.8h14"/></svg></span>
            </div>
            <p class="meta"><span class="meta__ora">10:44</span><span class="letto">Read<svg viewBox="0 0 22 12" aria-hidden="true"><path pathLength="1" d="M1.5 6.4 4.8 9.6 11 2.6"/><path pathLength="1" d="M8.6 9.4l.3.2L15.2 2.6"/></svg></span></p>
          </div>
        </li>
        <li class="voce" data-voce>
          <button class="domanda" type="button" aria-expanded="false">
            <span class="domanda__testo">What do you need from us to start?</span>
            <span class="segno" aria-hidden="true"><svg viewBox="0 0 20 20"><path d="M10 5.5v9M5.5 10h9"/></svg></span>
          </button>
          <div class="risposta" role="region" data-risposta>
            <div class="risposta__riga">
              <div class="bolla">
                <span class="puntini" aria-hidden="true"><i></i><i></i><i></i></span>
                <p class="bolla__testo">An hour with the founders and anything you already have: old logos, photos, the things you love.</p>
              </div>
              <span class="marchio marchio--piccolo" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M5 13.6c2.2 0 2.2-6.4 4.6-6.4s2.4 6.4 4.8 6.4 2.4-6.4 4.6-6.4"/><path d="M5 16.8h14"/></svg></span>
            </div>
            <p class="meta"><span class="meta__ora">10:47</span><span class="letto">Read<svg viewBox="0 0 22 12" aria-hidden="true"><path pathLength="1" d="M1.5 6.4 4.8 9.6 11 2.6"/><path pathLength="1" d="M8.6 9.4l.3.2L15.2 2.6"/></svg></span></p>
          </div>
        </li>
        <li class="voce" data-voce>
          <button class="domanda" type="button" aria-expanded="false">
            <span class="domanda__testo">Do you build the website too?</span>
            <span class="segno" aria-hidden="true"><svg viewBox="0 0 20 20"><path d="M10 5.5v9M5.5 10h9"/></svg></span>
          </button>
          <div class="risposta" role="region" data-risposta>
            <div class="risposta__riga">
              <div class="bolla">
                <span class="puntini" aria-hidden="true"><i></i><i></i><i></i></span>
                <p class="bolla__testo">We design it, and a small team we have worked with for years builds it with us.</p>
              </div>
              <span class="marchio marchio--piccolo" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M5 13.6c2.2 0 2.2-6.4 4.6-6.4s2.4 6.4 4.8 6.4 2.4-6.4 4.6-6.4"/><path d="M5 16.8h14"/></svg></span>
            </div>
            <p class="meta"><span class="meta__ora">10:51</span><span class="letto">Read<svg viewBox="0 0 22 12" aria-hidden="true"><path pathLength="1" d="M1.5 6.4 4.8 9.6 11 2.6"/><path pathLength="1" d="M8.6 9.4l.3.2L15.2 2.6"/></svg></span></p>
          </div>
        </li>
      </ul>
    </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.

35 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 “Chat bubble FAQ” 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 chat window on warm paper: on top the terracotta disc of Pantile Studio, «Usually replies in a few minutes» and the opening hours. Below, four questions, each a sand coloured speech bubble with a pointed bottom left corner and a plus in a white disc. Tapping a question, the bubble shrinks to half the width and takes a one pixel terracotta outline, the plus turns into a cross on a filled disc; on the right the dark answer bubble grows out of its bottom corner with a small bounce, and next to it the studio mark pops in. Three dots type for a moment, then the answer rises twenty pixels into place, and the time and «Read» settle underneath with the two ticks drawing themselves. Opening another question closes the first one backwards. When nobody touches it, the chat opens the questions one after the other on its own.

How it works

The shrinking bubble

The question is a button 100% wide: opening it, GSAP takes the width to 50% (75% when the chat is narrow) and the border colour from transparent to terracotta in 0.45 seconds with power2.out. The text wraps by itself, because no text is nowrap.

The answer from its corner

The answer wrapper goes from height 0 to auto and the bubble from scale 0 to 1 with its transform-origin at the bottom right, both in 0.5 seconds with back.out(1.6) after 0.05; the studio disc comes in at +0.15 with back.out(2).

Typing

Three dots sit over the bubble until the answer arrives: they rise three pixels one after the other, 0.12 seconds apart, for TYPING_TIME; then the answer rises from 20 pixels and zero opacity in 0.4 seconds.

Read

The time and «Read» arrive 0.18 seconds after the answer; the two ticks are paths with pathLength 1 drawn with stroke-dashoffset, with autoRound off so GSAP does not round the values to 0 or 1.

Closing backwards

The answer drops 15 pixels and fades in 0.22 seconds, the disc goes to scale 0 at +0.12, bubble and wrapper close in 0.4 seconds at +0.15 and the question grows back to full width without its border at +0.18. Opening a question closes the others.

Values to change

NameFileDefaultWhat it changes
SHRINK_TOscript.js50Percent of the width an open question shrinks to (75 on narrow screens).
OPEN_TIMEscript.js0.45Seconds the question takes to shrink and take its outline.
ANSWER_POPscript.js1.6How far the answer bubble goes past its size as it grows from the corner: 0 is none.
TYPING_TIMEscript.js0.6Seconds the three dots type before the answer appears.
TEXT_RISEscript.js20Pixels the answer text rises from.
AUTOPLAY_PAUSEscript.js2.4Seconds an answer stays open in the tour on its own.

Try them in the Playground

When to use it

For the FAQ of a studio, an agency, a service or a shop that wants to feel close: the answers arrive like a chat with the people who work there, and one open question at a time keeps the page short.

On phones

On a phone the chat takes almost the whole width, the open question shrinks to 75% instead of half, the opening hours on top go and sizes follow the height too, so the questions and the open answer fit the screen. It opens with a finger.

With reduced motion

No movement or bounce: the question takes its width and outline at once, the answer appears whole with a fade, without the dots, with the ticks already drawn.

Pitfalls

  • The shrinking bubble has no nowrap text and min-width 0 on the text: text that cannot wrap would widen the bubble and push the sign out of its disc.
  • The mark in the disc and the plus are svgs centred by a grid (place-items: center), not letters: a letter centres on its line, not on its drawing, and looks off centre.
  • The plus rotates the whole svg with transformOrigin 50% 50%, never with svgOrigin, which moves the pivot on the svg itself.

Libraries

GSAP 3.15.0, Schibsted Grotesk (font variabile) 5.3.0, Geist Mono (font variabile) 5.3.0.

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

Testing

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