Skip to content
animorio
IT
All components

Hopping assistant

Chat, Hover, TransitionsGSAP, CSS onlyMediumCompressed weight: Demo 8.1 KBGSAP 28 KBFreeDownload the zip

The AI assistant launcher of Quill, a made-up notes app: a glossy ink drop with two eyes, in the bottom-right corner. At rest it hops now and then, squashing first, stretching in the air, its shadow shrinking and landing on a spring; the eyes follow the pointer and blink. On hover it rises and says «Need a hand?»; on click the drop itself stretches into the chat window, its eyes climb into the header avatar, the greeting arrives word by word with three quick replies. The X folds it back into the drop, which lands with a little hop. On white, with a single amber accent.

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>
<!--
  "Hopping assistant" 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>Hopping assistant launcher</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">
    <!-- the corner of a window of Quill, a made-up notes app, with its AI assistant: a soft ink drop with two eyes.
         At rest it hops now and then and looks at the pointer; on hover it rises and says «Need a hand?»;
         on click the drop itself stretches into the chat window and its eyes climb into the header -->
    <section class="corner" data-corner aria-label="Quill, the notes app">
      <div class="tip" data-tip aria-hidden="true"><span class="tip__text">Need a hand?</span></div>
      <span class="shadow" data-shadow aria-hidden="true"></span>

      <div class="buddy" data-buddy>
        <span class="buddy__shine" data-shine aria-hidden="true"></span>

        <div class="chat" data-chat role="dialog" aria-label="Chat with Quill" aria-hidden="true">
          <header class="chat__head">
            <span class="chat__ring" data-ring aria-hidden="true"></span>
            <span class="chat__who" data-in>
              <strong>Quill</strong>
              <span>Your notes assistant</span>
            </span>
            <button class="chat__x" type="button" data-in data-close aria-label="Close the chat" tabindex="-1">
              <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M7.5 7.5l9 9M16.5 7.5l-9 9"/></svg>
            </button>
          </header>
          <div class="chat__body">
            <p class="msg" data-msg></p>
            <div class="quick" data-quick>
              <button class="quick__b" type="button" tabindex="-1">Summarize this page</button>
              <button class="quick__b" type="button" tabindex="-1">Find Tuesday’s ideas</button>
              <button class="quick__b" type="button" tabindex="-1">Turn it into a checklist</button>
            </div>
          </div>
          <div class="chat__foot" data-in>
            <label class="field">
              <span class="sr">Message Quill</span>
              <input type="text" placeholder="Ask Quill anything" tabindex="-1">
            </label>
            <button class="send" type="button" tabindex="-1" aria-label="Send">
              <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 18V6.5M7 11.5l5-5 5 5"/></svg>
            </button>
          </div>
        </div>

        <div class="eyes" data-eyes aria-hidden="true">
          <div class="eyes__look" data-look>
            <span class="eye" data-eye></span><span class="eye" data-eye></span>
          </div>
        </div>

        <button class="buddy__hit" type="button" data-open aria-expanded="false" aria-label="Open the Quill assistant"></button>
      </div>
      <p class="sr" aria-live="polite" data-live></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.

28 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 “Hopping assistant” 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

In the corner of a window of the Quill app, marked only by a grey hairline, waits a glossy black drop with two white slit eyes and its soft shadow on the floor. About every three and a half seconds it hops: it squashes, stretches as it rises while the shadow shrinks and fades, falls, squashes as it touches down and settles on an elastic. The eyes follow the pointer on a spring, the drop leans slightly toward it and now and then it blinks. Hover it and it rises while the «Need a hand?» bubble grows on its left; press it and it squashes. On click the drop squashes one last time and then stretches up and to the left into the chat window, its corners going from drop to window; the eyes climb into the header avatar, «Quill» and the X arrive, the greeting word by word, the three quick replies and the field with the amber send button. The X or Esc do the reverse: the window folds back into the drop, the eyes return to the centre and the drop makes a little hop and lands.

How it works

One element

The drop and the chat window are the same element, anchored to the bottom-right corner: GSAP animates width, height and border-radius from the drop’s pixels to the window’s. The chat content is laid out at its final size from the start, anchored bottom right, so nothing reflows while the drop grows.

The hop

One timeline per hop: an anticipation squash (scaleX up, scaleY down), the rise with a stretch, the shape rounding out in the air, the fall with a little stretch, the squash on impact and elastic.out to settle. The scale pivot is bottom centre, like an object resting on the floor; the shadow is a separate element that shrinks and fades while the drop is up.

The eyes

The eyes have three layers: the box GSAP moves from the centre of the drop to the header avatar (x, y, scale), the look that follows the pointer with two quickTo, and each eye blinking with scaleY. So the gaze and the trip to the header never cancel each other.

Corners in pixels

The drop’s border-radius (50% 50% 46% 46% / 56% 56% 44% 44%) is rewritten in pixels, with eight values, like the window’s: GSAP only interpolates strings with the same numbers and units. Everything is measured again on resize.

Playing by itself

Until someone touches it the demo plays alone: a fake pointer the eyes follow, two hops, the bubble, the press, the opening, a quick reply lighting up and the closing. The first real movement stops it, and after AUTO_PAUSE seconds of quiet it starts again.

Values to change

NameFileDefaultWhat it changes
HOP_EVERYscript.js3.4Seconds between two hops while the drop waits.
HOP_HEIGHTscript.js0.5How high a hop goes, as a share of the drop’s size.
SQUASHscript.js0.16How much the drop squashes and stretches (0 = rigid, 0.3 = jelly).
LOOKscript.js0.2How far the eyes move toward the pointer.
OPEN_TIMEscript.js0.72Seconds the drop takes to become the chat window.
WORD_GAPscript.js0.06Seconds between one word of the greeting and the next.
GREETINGscript.js"Hi! I can tidy up this page, find an idea from Tuesday or turn your notes into a checklist."What Quill writes when the chat opens.
AUTO_PAUSEscript.js6Seconds of quiet before the demo plays by itself again.

Try them in the Playground

When to use it

On sites and apps with an AI assistant or a support chat that want a bit of character: the corner button that gets noticed without being in the way and opens the conversation out of itself.

On phones

Everything is in em and the size depends on both the width and the height of the window; the chat window takes at most the corner’s space minus the margins. A tap works like a click, and the bubble shows on the first touch before the opening.

With reduced motion

No hops, gaze or springs: the drop stays still, the bubble fades in and the chat window fades in and out, with the greeting and the replies already in place.

Pitfalls

  • GSAP does not interpolate a percentage border-radius into a pixel one: both are written in pixels with eight values, and recomputed on resize.
  • The gaze, the eyes’ trip to the header and the blink live on three different elements, otherwise one tween cancels the other.
  • The chat content is laid out at its final size from the start and anchored bottom right: inside a growing box, text as wide as the box would reflow on every frame.
  • Focusing the X after a mouse opening showed the focus ring: focus moves only when the drop is opened from the keyboard.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

Tested on 3 December 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