Skip to content
animorio
IT
Back to the library

Lead type headline

Text, ScrollGSAPMediumCompressed weight: Demo 9.1 KBGSAP + ScrollTrigger 45 KBLenis 5.3 KBFreeDownload the zip

Scroll inside the preview

The opening of a made-up letterpress studio, Marrow Press, in the minimal style: as you scroll, the lead sorts of the headline leave the type case one at a time and land in the composing stick, mirrored like real type, with a glint running over the metal. The knee locks the line, a brayer inks only the raised faces, and a sheet comes down on the type, is pressed, pulled back and turned over: the headline is printed on it, right-reading, with uneven ink and the bite of the press. Scrolling back undoes it all.

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>
<!--
  "Lead type 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>Marrow Press, set by hand</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/fraunces@5.3.0/full.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- the home page of a made-up letterpress studio, Marrow Press. A sticky stage: scrolling, the lead sorts of the
       headline leave the type case one at a time and land in the composing stick, the knee closes the line, a brayer
       inks the faces and a sheet comes down on the type, is pulled and turned over: the headline is printed on it.
       Scrolling back undoes every step -->
  <section class="corsa" data-corsa>
    <div class="palco" data-palco>
      <p class="occhiello"><b>Marrow Press</b><span>Hand-set letterpress since 1974</span></p>
      <svg class="scena" data-scena viewBox="0 0 720 520" role="img" aria-label="The word PROOF set in lead type and printed on paper">
        <defs>
          <linearGradient id="legno" x1="0" y1="0" x2="0" y2="1">
            <stop offset="0" stop-color="#d2a877"/><stop offset="0.55" stop-color="#b98955"/><stop offset="1" stop-color="#9c6d3e"/>
          </linearGradient>
          <linearGradient id="fondoCassa" x1="0" y1="0" x2="0" y2="1">
            <stop offset="0" stop-color="#6e4a28"/><stop offset="1" stop-color="#8a603a"/>
          </linearGradient>
          <linearGradient id="acciaio" x1="0" y1="0" x2="0" y2="1">
            <stop offset="0" stop-color="#e9ebee"/><stop offset="0.35" stop-color="#cdd1d6"/><stop offset="0.7" stop-color="#b3b8bf"/><stop offset="1" stop-color="#9aa0a8"/>
          </linearGradient>
          <linearGradient id="acciaioBordo" x1="0" y1="0" x2="0" y2="1">
            <stop offset="0" stop-color="#f4f5f7"/><stop offset="1" stop-color="#8d939b"/>
          </linearGradient>
          <linearGradient id="piombo" x1="0" y1="0" x2="1" y2="1">
            <stop offset="0" stop-color="#b9bec5"/><stop offset="0.5" stop-color="#9da3ab"/><stop offset="1" stop-color="#7f858e"/>
          </linearGradient>
          <linearGradient id="piomboFianco" x1="0" y1="0" x2="0" y2="1">
            <stop offset="0" stop-color="#6f757d"/><stop offset="1" stop-color="#555a61"/>
          </linearGradient>
          <linearGradient id="occhio" x1="0" y1="0" x2="1" y2="1">
            <stop offset="0" stop-color="#eef0f3"/><stop offset="1" stop-color="#bfc4cb"/>
          </linearGradient>
          <linearGradient id="inchiostroLucido" x1="0" y1="0" x2="1" y2="1">
            <stop offset="0" stop-color="#3a363f"/><stop offset="0.45" stop-color="#17151a"/><stop offset="1" stop-color="#0c0b0e"/>
          </linearGradient>
          <linearGradient id="riflesso" x1="0" y1="0" x2="1" y2="0">
            <stop offset="0" stop-color="#fff" stop-opacity="0"/><stop offset="0.5" stop-color="#fff" stop-opacity="0.75"/><stop offset="1" stop-color="#fff" stop-opacity="0"/>
          </linearGradient>
          <linearGradient id="gomma" x1="0" y1="0" x2="1" y2="0">
            <stop offset="0" stop-color="#0d0c0f"/><stop offset="0.3" stop-color="#2c2930"/><stop offset="0.48" stop-color="#4b4652"/><stop offset="0.62" stop-color="#26232a"/><stop offset="1" stop-color="#0b0a0d"/>
          </linearGradient>
          <linearGradient id="manico" x1="0" y1="0" x2="0" y2="1">
            <stop offset="0" stop-color="#d9b07b"/><stop offset="0.5" stop-color="#b07c46"/><stop offset="1" stop-color="#7d5428"/>
          </linearGradient>
          <filter id="morbida" x="-30%" y="-30%" width="160%" height="160%"><feGaussianBlur stdDeviation="3"/></filter>
          <filter id="morbidaGrande" x="-30%" y="-30%" width="160%" height="160%"><feGaussianBlur stdDeviation="7"/></filter>
          <filter id="fibra" x="0" y="0" width="100%" height="100%">
            <feTurbulence type="fractalNoise" baseFrequency="0.9 0.35" numOctaves="2" seed="7" result="n"/>
            <feColorMatrix in="n" type="matrix" values="0 0 0 0 0.35  0 0 0 0 0.3  0 0 0 0 0.22  0 0 0 0.16 0"/>
          </filter>
          <filter id="inchiostro" x="-5%" y="-5%" width="110%" height="110%">
            <feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="2" seed="3" result="grana"/>
            <feDisplacementMap in="SourceGraphic" in2="grana" scale="1" xChannelSelector="R" yChannelSelector="G" result="mosso"/>
            <feTurbulence type="fractalNoise" baseFrequency="0.07 0.11" numOctaves="3" seed="11" result="macchie"/>
            <feColorMatrix in="macchie" type="matrix" data-macchie values="0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -2.2 2.05" result="alfa"/>
            <feComposite in="mosso" in2="alfa" operator="in"/>
          </filter>
          <clipPath id="tagliaGomma"><rect data-taglia-gomma x="-15" y="-62" width="30" height="124" rx="13"/></clipPath>
        </defs>

        <!-- the type case, with the compartments the sorts come from -->
        <g class="cassa" data-cassa></g>
        <!-- the composing stick: back plate, head, front lip and the sliding knee -->
        <g class="compositoio" data-compositoio></g>
        <g data-ombre></g>
        <g data-caratteri></g>
        <g data-ginocchio></g>
        <!-- the brayer that inks the faces -->
        <g class="rullo" data-rullo></g>
        <!-- the sheet that comes down on the type and is turned over -->
        <g class="foglio" data-foglio></g>
      </svg>
      <p class="stato" data-stato aria-live="polite"><span data-stato-testo>Setting the type, letter by letter</span></p>
    </div>
  </section>
  <footer class="piede">Marrow Press is a made-up studio.</footer>

  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/ScrollTrigger.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/lenis@1.3.26/dist/lenis.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.

16 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 “Lead type 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 white background there is the opening of Marrow Press, a made-up letterpress studio: at the top the name in spaced capitals and «Hand-set letterpress since 1974», in the middle the wooden type case with its compartments full of sorts, below it the steel composing stick with its knee and knurled screw, and at the bottom a sheet of paper with a deckle edge. As you scroll, the letters of PROOF leave their compartments one at a time: they lift, travel towards the stick growing and turning slightly, come down and land sinking a pixel and a half, with their shadow tightening underneath and a glint running over the lead. Every sort is a real block: the side with its nicks, the shoulder and the raised mirrored letter, with light on its edge and its shadow. Then the knee slides in and locks the line, the screw turns, a rubber brayer with a wooden handle rolls across and inks only the letters, which turn black and glossy; the sheet comes up onto the type, is pressed, then goes back down turning over: on the printed side is PROOF, right-reading, with patchy ink and the bite of the press, the proof number in red pencil. Underneath, a line says what is happening, and the old one leaves before the new one comes.

How it works

A still stage and one timeline

The stage is pinned to the top of the page, at most one screen tall, and the whole scene is a single paused GSAP timeline tied to the scroll with ScrollTrigger and scrub: scrolling forward or back moves the scene forward or back, step by step.

Real sorts, drawn in SVG

Each sort is an SVG group centred on itself: the lead body with its gradient, the side with two nicks, the shoulder, and the letter in Fraunces mirrored with scale(-1 1), drawn three times (light, shadow, face) for the relief. The ink is a fourth copy that appears when the roller passes.

The trip from the case

Each sort starts small, at 30 per cent, in its compartment: it lifts, then x, y, scale and rotation reach their place on different curves (y speeds up like a fall), it sinks SETTLE units and comes back. The stick jolts a little at every arrival.

The roller and the sheet

The roller crosses the line with power1.inOut; to know when it is over each letter the curve is turned round, and the ink comes on right then. The sheet comes up, is pressed (scale and shadow), goes back down and turns over with scaleY going from 1 to almost 0 and back to 1: halfway through the printed side appears, with an SVG noise filter that makes the ink uneven.

Values to change

NameFileDefaultWhat it changes
WORDscript.js'PROOF'The headline set in lead (3 to 7 letters; capitals print best).
RIDEscript.js1How much scroll the whole job takes: 2 is twice as long.
SCRUBscript.js0.8How far the scene lags behind the scroll, in seconds.
DROPscript.js1How high the sorts are lifted out of the case before they travel: 0 none, 2 twice as high.
SETTLEscript.js1.5How far a sort sinks past its place before it settles.
INKscript.js0.6How uneven the printed ink is: 0 solid, 1 patchy.
SHEENscript.js1How bright the glint sweeping over the metal is (0 none).

Try them in the Playground

When to use it

For the opening of a print shop, a graphic design studio or a stationery shop, for a publisher’s page or a type festival, for the «how we make it» section of a craft brand: the headline does not just appear, it is set and printed in front of the reader.

On phones

The same animation with adapted sizes: the whole scene is one SVG measured on both width and height, and it fits entirely in the stage; the lines above and below scale with min(vw, vh).

With reduced motion

No motion: the job is already done, with the sorts inked in the stick and the sheet printed, and the scene appears with a fade.

Pitfalls

  • GSAP moves SVG groups with its own transform: each sort is drawn centred on 0,0 so scale and rotation turn around its middle, and the mirrored letter has its scale(-1 1) on an inner group that GSAP does not touch.
  • The roller follows power1.inOut: to turn the ink on at the right moment the curve has to be inverted (u = √(f/2) in the first half), otherwise the letters go black before or after the roller passes.
  • Never once: true on a timeline tied to the scroll: opening the page already scrolled down would block the other ScrollTriggers.

Libraries

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

Compressed with gzip, the three demo files weigh 9.1 KB; the libraries: GSAP + ScrollTrigger 45 KB, Lenis 5.3 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