Skip to content
animorio
IT
Back to the library

Whiteboard marker headline

Text, SVGGSAP, CanvasMediumCompressed weight: Demo 11 KBGSAP 28 KBFreeDownload the zip

The headline of a team meeting written by hand with a marker on a whiteboard, minimal but with real materials: the chisel tip making a wide or thin line depending on the direction, ink with the fine streaks of a drying felt, the blue marker underlining and ringing a word, the eraser wiping in a zigzag and leaving the grey ghost every whiteboard has, then the next line.

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>
<!--
  "Whiteboard marker 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>Arlen Studio, the kickoff whiteboard</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 headline of a team kickoff written with a chisel marker on a glossy whiteboard: the ink goes down stroke by
       stroke with the streaks and the width of a real chisel tip, the blue marker underlines and rings a word, then the
       felt eraser wipes it off leaving the faint ghost every whiteboard has, and the next line is written. Drag on the
       board to write with the blue marker yourself; a click sends the eraser. -->
  <main class="stage">
    <figure class="lavagna" data-lavagna aria-label="Whiteboard">
      <p class="etichetta"><span data-team>Arlen Studio</span> <span class="etichetta__sep">/</span> <span data-sprint>Sprint 14 kickoff</span></p>
      <div class="lavagna__piano" data-piano>
        <canvas class="lavagna__fantasma" data-fantasma aria-hidden="true"></canvas>
        <canvas class="lavagna__inchiostro" data-inchiostro aria-hidden="true"></canvas>
        <span class="lavagna__riflesso" data-riflesso aria-hidden="true"></span>
        <canvas class="lavagna__attrezzi" data-attrezzi aria-hidden="true"></canvas>
        <h1 class="sr" data-frase></h1>
      </div>
      <div class="vassoio" aria-hidden="true"></div>
      <figcaption class="nota">Drag to write. Click to wipe.</figcaption>
    </figure>
  </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 “Whiteboard marker 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 warm grey wall there is a white enamel whiteboard with an aluminium frame, the tray underneath and a label at the top, Arlen Studio / Sprint 14 kickoff. The surface still carries the grey ghosts of old meetings, and a band of light crosses it diagonally. A whiteboard marker, drawn with its white cylindrical barrel, the band and cap in the ink colour, the grey collar and the chisel felt tip, comes up from the tray and writes Ship the beta in hand-lettered print: stroke by stroke, with the same tip held at an angle, so the line is wide when the hand moves across the tip and thin when it moves along it, as it really does. The ink has the light streaks of a felt starting to dry, soft edges and a small darker blot where the pen stops; between strokes the marker lifts and its shadow moves away. Then it goes back to the tray, the blue marker comes up, underlines the whole line with one fast stroke and a hook at the end, and rings beta with an oval that closes a little past its start. After a few seconds the eraser arrives, black on top and grey felt underneath, and wipes in a zigzag: the ink comes off in layers, not all of it, and the grey ghost stays. On that same ghost Then rest. is written, underlined twice, and the loop starts again. Drag on the board to write with the blue marker; a click sends the eraser right away.

How it works

A single-stroke alphabet

Every letter is made of a few single-line strokes, written with Bézier curves in a box of 100: the baseline at 100, the x-height at 55, the capitals at 20. The strokes are broken into points 1.2 pixels apart, with a small rotation and baseline jump different for each letter, taken from a seeded random: the writing is by hand but the same on every visit.

The chisel tip

The ink is not a line of fixed width: along the path the tip segment is stamped every half pixel, always at the same angle. So the stroke widens when the hand moves across and narrows when it moves along, by itself. The segment is made of 13 lanes, each with its own tone: a few lighter ones make the streaks of the felt, the edges are softer.

The direction

One GSAP timeline per line: the marker flies lifted to the first point of each stroke, lowers and runs along it with power1.inOut at a speed in pixels per second, then lifts again. The blue comes only after the black has gone back to the tray. The tools are redrawn on their own canvas every frame.

The eraser and the ghost

The eraser follows a zigzag over the words and removes the ink with destination-out and a soft brush that never quite clears everything. What is left at the end moves into the ghost layer with a touch of blur, and the next line is written over it.

Values to change

NameFileDefaultWhat it changes
TEAMscript.jsArlen StudioThe team name on the label.
SPRINTscript.jsSprint 14 kickoffThe meeting on the label.
LINE_1script.jsShip the betaThe first headline (available letters: a b e h i n p r s t S T and the full stop).
LINE_2script.jsThen rest.The second headline, written after the eraser.
SPEEDscript.js1How fast the hand writes: 2 is twice as fast.
NIBscript.js1How wide the chisel tip is.
STREAKSscript.js1How streaky the felt is: 0 is a brand new marker.
GHOSTscript.js1How much the eraser leaves behind: 0 wipes clean.
HOLDscript.js2.4Seconds the finished line stays before the eraser.
--accentostyle.css#2556e8The blue of the second marker, the only accent.
--inchiostrostyle.css#17181cThe black of the marker.

Try them in the Playground

When to use it

For the page of a studio, a course or a workshop, for an agency’s how-we-work section, for a meetings or shared whiteboard app, for a headline that should look handwritten live.

On phones

The same animation with adapted sizes: the board is sized on the height too and, when narrow, the line breaks in two; dragging with a finger writes.

With reduced motion

No moving marker or eraser: the line fades in already written and after a few seconds gives way to the other.

Pitfalls

  • The chisel-tip line comes from stamping the tip segment, not from lineWidth: a canvas line always has the same width in every direction.
  • The lanes are opaque and each has its tone already mixed with the board white: with transparency the nearby stamps would add up and the streaks would vanish.
  • The eraser uses destination-out on the ink canvas; the old ghosts live on a canvas below, otherwise they would be wiped too.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 11 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