Skip to content
animorio
IT
Back to the library

Pencil boil cover

Intro, Text, SVGGSAP, CSS onlyMediumCompressed weight: Demo 7.9 KBGSAP 28 KBFreeDownload the zip

The intro of an invented fashion house: on a red veil the title arrives letter by letter, each sliding 25 pixels, and behind it a red pencil drawing, an arch with a coat on its hanger, boils like hand-drawn animation. The veil dissolves, on the button the pencil calms down, and on click the letters leave from the last one while the drawing comes down from two and a half times to its real size.

Rebuilt from scratch studying thejacketcirclegame.maxmara.com by Adoratorio Studio: 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>
<!--
  "Pencil boil cover" 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 cover intro with a title that boils like pencil</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource/libre-baskerville@5.3.0/400.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource/libre-baskerville@5.3.0/400-italic.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/index.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- the cover of Ardelle, an invented fashion house, and its coat atlas -->
  <svg class="filtri" aria-hidden="true" focusable="false">
    <defs>
      <!-- three pencil "takes" of the same drawing: the drawing jumps between them like hand-drawn animation -->
      <filter id="bolle-0" x="-5%" y="-5%" width="110%" height="110%">
        <feTurbulence type="fractalNoise" baseFrequency="0.035" numOctaves="2" seed="3" result="r" />
        <feDisplacementMap in="SourceGraphic" in2="r" scale="4" xChannelSelector="R" yChannelSelector="G" data-mappa />
      </filter>
      <filter id="bolle-1" x="-5%" y="-5%" width="110%" height="110%">
        <feTurbulence type="fractalNoise" baseFrequency="0.035" numOctaves="2" seed="11" result="r" />
        <feDisplacementMap in="SourceGraphic" in2="r" scale="4" xChannelSelector="G" yChannelSelector="B" data-mappa />
      </filter>
      <filter id="bolle-2" x="-5%" y="-5%" width="110%" height="110%">
        <feTurbulence type="fractalNoise" baseFrequency="0.035" numOctaves="2" seed="23" result="r" />
        <feDisplacementMap in="SourceGraphic" in2="r" scale="4" xChannelSelector="B" yChannelSelector="R" data-mappa />
      </filter>
      <!-- the same three takes, finer, for the title -->
      <filter id="lettere-0" x="-2%" y="-10%" width="104%" height="120%">
        <feTurbulence type="fractalNoise" baseFrequency="0.06" numOctaves="1" seed="5" result="r" />
        <feDisplacementMap in="SourceGraphic" in2="r" scale="2" xChannelSelector="R" yChannelSelector="G" data-mappa-titolo />
      </filter>
      <filter id="lettere-1" x="-2%" y="-10%" width="104%" height="120%">
        <feTurbulence type="fractalNoise" baseFrequency="0.06" numOctaves="1" seed="17" result="r" />
        <feDisplacementMap in="SourceGraphic" in2="r" scale="2" xChannelSelector="G" yChannelSelector="B" data-mappa-titolo />
      </filter>
      <filter id="lettere-2" x="-2%" y="-10%" width="104%" height="120%">
        <feTurbulence type="fractalNoise" baseFrequency="0.06" numOctaves="1" seed="29" result="r" />
        <feDisplacementMap in="SourceGraphic" in2="r" scale="2" xChannelSelector="B" yChannelSelector="R" data-mappa-titolo />
      </filter>
    </defs>
  </svg>

  <div class="pagina">
    <div class="carta" aria-hidden="true"></div>

    <!-- the pencil drawing: an arch, a rail, a coat on its hanger -->
    <div class="disegno" data-drawing aria-hidden="true">
      <div class="disegno__scala" data-zoom>
        <svg viewBox="0 0 400 520" preserveAspectRatio="xMidYMid meet">
          <g class="tratti" data-strokes></g>
        </svg>
      </div>
    </div>

    <div class="velo" data-veil aria-hidden="true"></div>

    <header class="testa" data-head>
      <span class="marchio" data-logo aria-label="Ardelle">ARDELLE</span>
      <span class="cartellino" data-tag>Room of the camel coat</span>
    </header>

    <main class="copertina" data-cover>
      <h1 class="titolo" data-title aria-label="The Ardelle Coat Atlas">
        <span class="riga riga--corsivo" data-line aria-hidden="true">The Ardelle</span>
        <span class="riga riga--maiuscolo" data-line aria-hidden="true">COAT ATLAS</span>
        <svg class="sottolineato" viewBox="0 0 300 14" preserveAspectRatio="none" aria-hidden="true">
          <path data-underline d="M4 9 C60 5 130 11 190 7 S268 6 296 8" />
          <path data-underline d="M40 12 C110 9 170 13 262 10" />
        </svg>
      </h1>
      <p class="frase">
        <span class="maschera"><span class="frase__riga" data-phrase>Twelve coats, one word each:</span></span>
        <span class="maschera"><span class="frase__riga" data-phrase>a wardrobe you read like a dictionary.</span></span>
      </p>
      <div class="entra-box" data-enter-box>
      <button class="entra" type="button" data-enter>
        <span class="entra__fondo" aria-hidden="true"></span>
        <span class="entra__scritta">Enter the atlas</span>
      </button>
      </div>
    </main>

    <button class="ancora" type="button" data-replay aria-label="Play the cover again">
      <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12a7 7 0 1 0 2.2-5.1" /><path d="M5 4.5v3.6h3.6" /></svg>
      <span>Replay</span>
    </button>
  </div>

  <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.

27 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 “Pencil boil cover” 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 page starts red. In the middle the title arrives on two lines, “The Ardelle” in italic and “COAT ATLAS” in capitals: each letter slides in from 25 pixels to the left in one second, seventy-five thousandths after the one before, and the second line starts forty-five hundredths after the first. Below, the phrase rises out of its masks line by line, and a pencil underline traces itself under the second line, gone over twice. Then the red melts away and behind it a red pencil drawing on pink paper shows, enlarged two and a half times from its top: the keystone of an arch, a rail, the hook of a hanger. The drawing is never still: it boils like hand-drawn animation, jumping between three slightly different versions of the same lines seven and a half times a second, and the title boils too, more gently. The cream button arrives, from a little larger, with a hard offset shadow like a stamp. Hover it and the shadow flattens, the button sinks two pixels and the pencil calms down almost completely. On click the button rises and disappears, the letters leave to the right starting from the last one, the phrase rises out of its masks and the drawing comes down to its real size in two seconds: the whole arch, the rail, the coat on its hanger with its knotted belt, the pockets, the tag, the hatched shadow. It darkens as it arrives, the coat swings a hair on its hook and at the top the name of the house writes itself, ARDELLE, then the room. After a few seconds the cover plays again; there is a Replay button too.

How it works

Letters, split by hand

Each line of the title is split into letters, each in an inline-block span. GSAP takes them from x -25 and autoAlpha 0 to 0 and 1 in one second with power3.out and a 0.075 stagger; the second line starts 0.45 seconds after the first. On the way out the same letters go to x 25 with stagger from end: the last ones leave first.

Three versions of the same line

There are three identical SVG filters, feTurbulence plus feDisplacementMap, with three different seeds and the colour channels swapped. GSAP’s ticker counts the time and every 0.4 divided by 3 seconds gives the drawing the next filter: the lines change shape in jumps, 7.5 times a second, like the redrawn frames of a cartoon. The strength is the map’s scale attribute.

The pencil calms down on the button

An amp object, from 0 to 1, multiplies the scale of every map. On the button GSAP takes it to 0.15 in 0.6 seconds and back to 1 when you leave; meanwhile the button’s hard shadow, a 4 pixel drop-shadow with no blur, goes to zero in half a second and the button sinks two pixels, as if pressed onto the sheet.

The drawing comes down from the top

The drawing sits in an element scaled 2.5 times with its origin at the top centre, so behind the cover you only see the keystone and the hook. On click GSAP takes it to 1 in two seconds with power4.inOut, together with the lines’ opacity from 0.42 to 1: the drawing arrives and darkens. A swing of six tenths of a degree, origin still at the top, settles it on the hook.

One element for GSAP, one for CSS

The button has its hover in CSS, with translate and filter; GSAP’s entrance and exit sit on its container. That way GSAP’s inline transform does not wipe out the CSS one.

Values to change

NameFileDefaultWhat it changes
LETTER_SHIFTscript.js25How many pixels each letter slides, coming in and going out.
LETTER_STAGGERscript.js0.075The seconds between one letter and the next.
LINE_DELAYscript.js0.45How long the second line of the title waits.
ZOOMscript.js2.5How enlarged the drawing is behind the cover.
ZOOM_OUTscript.js2How many seconds the drawing takes to come down to its size.
BOILscript.js4How much the pencil boils (0 still).
BOIL_FPSscript.js7.5How many times a second the drawing changes version.
CALMscript.js0.15How much boil is left with the pointer on the button.
AUTO_ENTERscript.js2.6After how many seconds the cover enters by itself (0 only on click).
HOLDscript.js4.5How many seconds the drawing stays before playing again.
SPEEDscript.js1Speed of everything: 2 twice as fast, 0.5 half as fast.

Try them in the Playground

When to use it

For the opening of a fashion site, a collection, a campaign or an editorial project that wants to feel hand drawn: a title to read slowly, a button to step in and a scene that reveals itself.

On phones

The same intro: the title is sized on width and height, so is the drawing, and the boil is identical. The button is pressed with a finger, no hover.

With reduced motion

Nothing moves and nothing boils: the title, the phrase and the button fade in, the red melts away, and on click the cover fades leaving the drawing already at its size.

Pitfalls

  • Changing feTurbulence’s seed every frame forces the browser to recompute the noise: three ready-made filters and a filter attribute that swaps between them cost much less.
  • feDisplacementMap’s scale is in the drawing’s units, not in pixels: on a 400 wide viewBox a value of 4 moves the lines by about two units, two or three pixels at that size.
  • The drawing is scaled from an element inside the one that centres it: CSS translate and GSAP scale on the same element would wipe each other out.

Libraries

GSAP 3.15.0, Libre Baskerville 5.3.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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