Skip to content
animorio
IT
Back to the library

Ink drop transition

Transitions, HoverGSAP, Canvas, CSS onlyMediumCompressed weight: Demo 9.5 KBGSAP 28 KBFreeDownload the zip

The page change of a made-up ink maker's site, Blotwell, with four full-colour pages: Studio, Inks, Nibs and Classes. Pick a menu item and a drop of the next page's ink falls from above the click, stretching as it speeds up while its shadow gathers on the paper; on the hit it squashes, throws a shower of spatter around and opens into a blot with an uneven edge, its lobes swaying, the darker rim of wet ink and a sheen on the side the light comes from. The blot spreads slowly and then all at once to the farthest corner, becomes the new page's background and the title rises letter by letter.

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>
<!--
  "Ink drop transition" 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 page transition with a drop of ink that spreads into a blot</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/fraunces@5.3.0/full.css">
  <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 four pages of a made-up ink maker, Blotwell. Every page has its own full colour. A click on the menu lets
         a drop of the next page's ink fall from above the click, hit the paper, throw out a spatter of droplets and
         spread into an uneven blot that covers the screen and becomes the new page -->

    <header class="top">
      <a href="#" class="brand" data-go="studio" aria-label="Blotwell ink makers, home">
        <svg class="brand__mark" viewBox="0 0 24 24" aria-hidden="true">
          <path d="M12 3.2c3.3 4.4 5.6 7.6 5.6 10.6a5.6 5.6 0 0 1-11.2 0c0-3 2.3-6.2 5.6-10.6z"></path>
          <path d="M9.4 14.6c.3 1.4 1.3 2.3 2.7 2.5"></path>
        </svg>
        <span class="brand__name">Blotwell</span>
      </a>
      <a href="#" class="shop" data-go="classes"><span>Book a class</span>
        <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 8h8.5M8.6 4.4 12.2 8l-3.6 3.6"></path></svg>
      </a>
    </header>

    <div class="pages">
      <section class="page is-on" data-page="studio" aria-label="Studio">
        <p class="eyebrow" data-in>Ink makers since 1998</p>
        <h1 class="title" data-title>Studio</h1>
        <div class="foot">
          <p class="text" data-in>Iron gall and pigment inks, ground by hand in small batches and bottled in the back room.</p>
          <div class="card" data-in>
            <span class="card__small">This month</span>
            <span class="card__mid">Six new shades</span>
          </div>
        </div>
      </section>

      <section class="page" data-page="inks" aria-label="Inks" hidden>
        <p class="eyebrow" data-in>Forty colours on the shelf</p>
        <h1 class="title" data-title>Inks</h1>
        <div class="foot">
          <p class="text" data-in>Deep indigo, oxblood, moss and soot, each one tested on six papers before it leaves.</p>
          <div class="card" data-in>
            <span class="card__small">Bottle, 50 ml</span>
            <span class="card__mid">&euro;18</span>
          </div>
        </div>
      </section>

      <section class="page" data-page="nibs" aria-label="Nibs" hidden>
        <p class="eyebrow" data-in>Steel, brass and gold</p>
        <h1 class="title" data-title>Nibs</h1>
        <div class="foot">
          <p class="text" data-in>Pointed, broad and italic nibs, ground to write wet and to stop before they flood.</p>
          <div class="card" data-in>
            <span class="card__small">Starter set</span>
            <span class="card__mid">Five nibs, one holder</span>
          </div>
        </div>
      </section>

      <section class="page" data-page="classes" aria-label="Classes" hidden>
        <p class="eyebrow" data-in>Saturday mornings</p>
        <h1 class="title" data-title>Classes</h1>
        <div class="foot">
          <p class="text" data-in>Three hours at the long table, a nib, a bottle and a slow first alphabet.</p>
          <div class="card" data-in>
            <span class="card__small">Next class</span>
            <span class="card__mid">Sat 15 Nov, 9:30</span>
          </div>
        </div>
      </section>
    </div>

    <!-- the drop, the spatter and the blot are drawn on this canvas, above the pages and below the menu -->
    <canvas class="ink" data-ink aria-hidden="true"></canvas>

    <nav class="nav" data-nav aria-label="Main">
      <span class="nav__hover" data-hover aria-hidden="true"></span>
      <span class="nav__pill" data-pill aria-hidden="true"><span class="nav__gloss"></span></span>
      <a href="#" class="nav__item is-here" data-go="studio" aria-current="page"><span>Studio</span></a>
      <a href="#" class="nav__item" data-go="inks"><span>Inks</span></a>
      <a href="#" class="nav__item" data-go="nibs"><span>Nibs</span></a>
      <a href="#" class="nav__item" data-go="classes"><span>Classes</span></a>
    </nav>

    <div class="grain" aria-hidden="true"></div>
    <svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.5l13 7.2-5.6 1.4-2.8 5.4z"></path></svg>
    <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.

45 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 “Ink drop transition” 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

The menu at the bottom is a dark glass bar with the cream pill under the page you are on; on hover the soft pill following the pointer takes a little of the colour of the page it leads to. On click the item squashes and a drop of the next page's ink falls from above the click: it stretches as it speeds up and under it a shadow spreads and darkens on the paper. On the hit the drop turns into a small blot and throws out fourteen droplets, stretched the way they fly and slowed by the paper drinking them. The blot's edge is made of four overlapping waves that sway slowly, with a lighter fill in the middle, the darker rim of wet ink and a soft sheen; the bigger it grows, the calmer the edge. It spreads slowly and then all at once to the farthest corner, covers the spatter and becomes the new page's background: the title rises letter by letter from below, turned a few degrees, then the label, the line and the card arrive.

How it works

A canvas above the pages

The drop, the spatter and the blot are drawn on a full-page canvas, above the pages and below the menu, redrawn every frame only while the transition runs (gsap.ticker).

The drop falls

A state object carries the drop's position, its stretch and the shadow: GSAP animates them with power2.in, so the drop speeds up, and the shadow grows under the landing point.

The edge of the blot

The blot's radius changes with the angle: it is 1 plus the sum of four sines with frequencies, amplitudes and phases picked at random on every change, drifting over time. The points are joined with quadratic curves through the midpoints, so the edge is soft.

The spatter

On the hit the droplets leave at a random speed and angle, mostly up and sideways; every frame they move and their speed drops exponentially, like ink drunk by paper. They are drawn as ellipses stretched along their motion.

To the farthest corner

The final radius is the distance from the hit to the farthest corner, plus a little: the blot gets there with power2.in, then the new page takes the colour and the canvas is cleared.

The title in letters

Titles are split into letters at start (the whole title stays in the aria-label); the new title's letters rise from below, turned, one after the other with back.out.

Values to change

NameFileDefaultWhat it changes
FALLscript.js0.34Seconds for the drop to fall onto the click point.
SPLASHscript.js0.2Seconds of the first hit, when the drop opens into a small blot.
SPREADscript.js0.95Seconds for the blot to spread over the screen.
WOBBLEscript.js0.16How uneven the blot edge is (0 is a circle).
LOBESscript.js7How many main lobes the blot has.
SPATTERscript.js14How many droplets the hit throws out.
RIMscript.js1The darker rim of wet ink (1 on, 0 off).
STAGGERscript.js0.035Seconds between one letter and the next of the new title.
AUTO_EVERYscript.js1.6Left alone, the seconds of pause on each page before the next lap.

Try them in the Playground

When to use it

For the site of a workshop, a studio or a brand that works with ink, paper or colour (an ink maker, a print shop, an illustrator, a calligraphy school), with few full-colour pages: when the page change should have a real material and start from the click.

On phones

The same transition with adapted sizes: the drop and the spatter are sized on the shorter side of the screen, the blot always reaches the farthest corner, the bar stays at the bottom centre with narrower items, the line and the card stack, and in the short box only the card stays.

With reduced motion

No drop, no spatter and no spreading blot: the new page's colour fades over the page in 0.4 s and the new page fades in; the cream pill jumps to its place.

Pitfalls

  • The canvas is sized in device pixels (at most 2) and redrawn on resize: a resize mid-transition jumps the timeline to its end.
  • The blot edge has to calm down as it grows: with the same amplitude, at full screen the lobes become huge and the blot looks like a star.
  • The drawing ticker runs only during the transition and stops at the end: a canvas redrawn all the time burns battery for nothing.
  • A title split into letters loses its text for screen readers: the whole title stays in the aria-label and the letters are aria-hidden.

Libraries

GSAP 3.15.0, Fraunces (font variabile) 5.3.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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