Skip to content
animorio
IT
Back to the library

Three-cursor headline

Text, HoverGSAP, CSS onlyMediumCompressed weight: Demo 7.7 KBGSAP 28 KBFreeDownload the zip

The title of a shared document in a made-up writing app, in the clean style of today’s products: three people edit it live, each with a thin caret and a name tag. One drags across a word and rewrites it, one slants a word into italics from the small toolbar, the third adds the ending; typed letters arrive narrow and open up on the width axis. Over the page the pointer becomes the fourth cursor, You.

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>
<!--
  "Three-cursor headline" 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>Fernpage, a title written together</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>
  <!-- the title of a shared document in a made-up writing app, edited live by three people. Each one is a thin caret
       with a name tag: one selects a word and changes it, one slants a word into italics from a small toolbar, one
       adds the ending. The avatar of whoever is typing lights up at the top. Move the pointer over the page and you
       become the fourth cursor, tagged You. -->
  <main class="palco" data-palco>
    <header class="barra">
      <span class="doc">
        <svg viewBox="0 0 20 20" aria-hidden="true"><path d="M5 2.5h7l3.5 3.5v11.5h-10.5z" /><path d="M12 2.5v3.5h3.5" /><path d="M7.5 10h5M7.5 13h3.5" /></svg>
        <span data-doc>Launch brief</span>
      </span>
      <span class="presenti" aria-label="People in this document">
        <span class="avatar" data-avatar="0"><span data-iniziale></span></span>
        <span class="avatar" data-avatar="1"><span data-iniziale></span></span>
        <span class="avatar" data-avatar="2"><span data-iniziale></span></span>
        <span class="avatar avatar--tu" data-avatar="tu"><span>You</span></span>
      </span>
    </header>

    <section class="foglio">
      <p class="etichetta">Title</p>
      <h1 class="titolo" data-titolo aria-live="off"></h1>
      <p class="stato" aria-live="polite">
        <span class="stato__riga" data-stato></span>
      </p>
    </section>

    <div class="strumenti" data-strumenti aria-hidden="true">
      <span class="strumenti__tasto">B</span>
      <span class="strumenti__tasto strumenti__tasto--i" data-tasto-i>I</span>
      <span class="strumenti__tasto strumenti__tasto--link">
        <svg viewBox="0 0 16 16"><path d="M6.6 9.4l2.8-2.8M7.4 4.6l1-1a2.6 2.6 0 013.7 3.7l-1 1M8.6 11.4l-1 1a2.6 2.6 0 01-3.7-3.7l1-1" /></svg>
      </span>
    </div>

    <div class="cursore" data-cursore="0" aria-hidden="true"><span class="cursore__asta"></span><span class="cursore__nome" data-nome></span></div>
    <div class="cursore" data-cursore="1" aria-hidden="true"><span class="cursore__asta"></span><span class="cursore__nome" data-nome></span></div>
    <div class="cursore" data-cursore="2" aria-hidden="true"><span class="cursore__asta"></span><span class="cursore__nome" data-nome></span></div>

    <div class="tu" data-tu aria-hidden="true">
      <svg viewBox="0 0 16 20"><path d="M1.5 1.5l12 9.2-5.4.6-3 5.6z" /></svg>
      <span class="tu__nome">You</span>
    </div>
  </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.

20 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 “Three-cursor headline” 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 white background there is the page of Launch brief, a document in a made-up writing app: at the top the document name and the three people present, Ana, Kofi and Lena, as small coloured circles with their initial; in the middle, large, the title A calmer way to plan your week. The three people are cursors: a thin vertical caret in their soft colour, with a name tag above it, blinking gently while it waits. Kofi goes to the start of plan, his tag leaning a little into the trip and straightening on a spring; he drags across the word, which fills with his colour, deletes it and types shape: each letter arrives narrow and light and opens up on the width axis. As he finishes, Lena goes to calmer, double-clicks it and the small dark toolbar with B, I and the link appears above: she presses I and the word leans into italics with a bounce and a one-pixel nudge. Meanwhile Ana walks to the end and adds , together. one letter at a time, with the real pauses of someone typing. Whoever is typing gets a ring on their circle, which lifts by two pixels, and under the title the status line says who is editing, the old line leaving before the new one comes in; at the end All changes saved with a tick that draws itself. Move the mouse over the page and the pointer becomes the fourth cursor, a violet arrow tagged You, and its circle joins the others at the top.

How it works

A title made of words and letters

Each word is an inline-block holding its letters: lines only wrap between words, and a whole word can lean with skewX without touching the others.

The caret knows where it is

A caret sits on the right edge of a letter, read with getBoundingClientRect; each caret remembers its word and letter, so when the window changes size it lands on the same spot.

Real keystrokes

A single GSAP timeline places every keystroke at SPEED with small, uneven pauses: the three work slightly overlapped, like real people. Each new letter goes from wdth NARROW to 100 on the width axis.

The fourth cursor

Over the page the pointer becomes an arrow tagged You that follows with quickTo; on phones it appears where you tap and then leaves.

Values to change

NameFileDefaultWhat it changes
DOCscript.jsLaunch briefThe name of the document.
NAMESscript.jsAna, Kofi, LenaThe three people writing, comma separated.
SPEEDscript.js1How fast everyone types.
NARROWscript.js70The width a typed letter starts from, 100 is normal.
TILTscript.js11How far the italic word leans, in degrees.
HOLDscript.js3.2The seconds the finished title stays.

Try them in the Playground

When to use it

For the page of a collaborative editor, a docs or team notes app, for the section of a landing page showing live teamwork, or for the hero of a writing product.

On phones

The same animation with adapted sizes: the title is sized on the height too and wraps more often, the carets follow their words; the fourth cursor appears where you tap.

With reduced motion

No travelling carets or opening letters: the finished title fades in with the three tags resting where they finished.

Pitfalls

  • Words must be inline-block to lean, but the letters inside stay inline: that way lines only wrap at spaces.
  • Caret positions are read after document.fonts.ready: measured before the font loads they would be wrong.
  • Never tabular-nums with Mona Sans: the zero comes out slashed.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

Tested on 30 October 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