Skip to content
animorio
IT
Back to the library

Tracing paper transition

Transitions, SVGGSAP, CSS onlyAdvancedCompressed weight: Demo 12 KBGSAP 28 KBFreeDownload the zip

The site of a made-up interior architecture studio, in the minimal style, with three real photos of rooms: open a project and a sheet of tracing paper slides over the page, which still shows underneath, milky and soft; a graphite pencil sketches the next page on it like a layout drawing, with boxes running past their corners, the photo crossed by its diagonals, the title traced letter by letter and a red pencil loop. Under the sheet the page changes, then the sheet peels off from its corner, the fold catching the light, and is pulled away. Back does the same from the other side.

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>
<!--
  "Tracing paper 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>Thornbury, tracing paper transition</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 site of a made-up interior architecture studio. Open a project and a sheet of tracing paper slides over the
       page: through it the old page still shows, blurred, while a pencil sketches the next page on the sheet. The
       page underneath changes, and the sheet peels off from its corner and is pulled away. Back does the same from
       the other side. -->
  <main class="palco" data-palco>

    <!-- the index -->
    <section class="pagina pagina--indice" data-pagina="indice" aria-label="Work">
      <header class="testa" data-schizzo="riga">
        <span class="marchio" data-schizzo="scatola">Thornbury</span>
        <nav class="voci" data-schizzo="scatola"><span>Work</span><span>Studio</span><span>Contact</span></nav>
      </header>
      <p class="occhiello" data-schizzo="testo">Interior architecture, since 2009</p>
      <h1 class="titolo" data-schizzo="titolo">Rooms that hold the light.</h1>
      <ul class="lista">
        <li><button class="progetto" type="button" data-progetto="0" data-schizzo="riga">
          <img class="miniatura" data-schizzo="immagine" src="casa-arno.webp" alt="" width="1024" height="684" decoding="async">
          <span class="progetto__nome">Casa Arno</span><span class="progetto__dove">Lucca</span><span class="progetto__anno">2025</span>
          <svg class="progetto__freccia" viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h9M8.5 4.5 12 8l-3.5 3.5" /></svg>
        </button></li>
        <li><button class="progetto" type="button" data-progetto="1" data-schizzo="riga">
          <img class="miniatura" data-schizzo="immagine" src="harbour-flat.webp" alt="" width="1024" height="682" decoding="async">
          <span class="progetto__nome">Harbour Flat</span><span class="progetto__dove">Bergen</span><span class="progetto__anno">2024</span>
          <svg class="progetto__freccia" viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h9M8.5 4.5 12 8l-3.5 3.5" /></svg>
        </button></li>
        <li><button class="progetto" type="button" data-progetto="2" data-schizzo="riga">
          <img class="miniatura" data-schizzo="immagine" src="low-house.webp" alt="" width="960" height="641" decoding="async">
          <span class="progetto__nome">Low House</span><span class="progetto__dove">Porto</span><span class="progetto__anno">2023</span>
          <svg class="progetto__freccia" viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h9M8.5 4.5 12 8l-3.5 3.5" /></svg>
        </button></li>
      </ul>
    </section>

    <!-- one project -->
    <section class="pagina pagina--progetto" data-pagina="progetto" aria-label="Project" hidden>
      <header class="testa" data-schizzo="riga">
        <button class="indietro" type="button" data-indietro data-schizzo="scatola">
          <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M13 8H4M7.5 4.5 4 8l3.5 3.5" /></svg>All work
        </button>
        <span class="marchio" data-schizzo="scatola">Thornbury</span>
      </header>
      <div class="scheda">
        <img class="foto" data-schizzo="immagine" data-foto src="casa-arno.webp" alt="Casa Arno: a leather sling chair before tall steel windows with linen curtains, on a pale oak floor" width="1024" height="684" decoding="async">
        <div class="scheda__testo">
          <p class="occhiello" data-schizzo="testo" data-dove>Lucca, 2025</p>
          <h1 class="titolo titolo--progetto" data-schizzo="titolo" data-nome>Casa Arno</h1>
          <p class="descrizione" data-schizzo="testo" data-testo>A stone house by the river, opened to the afternoon light with tall steel windows, linen curtains and floors in pale oak.</p>
          <dl class="dati" data-schizzo="riga">
            <div><dt>Area</dt><dd data-area>140 m²</dd></div>
            <div><dt>Rooms</dt><dd data-stanze>6</dd></div>
            <div><dt>Light</dt><dd data-luce>South-west</dd></div>
          </dl>
        </div>
      </div>
    </section>

    <!-- the sheet of tracing paper: its shadow, the sheet with the pencil sketch, and the corner that peels back -->
    <div class="foglio" data-foglio aria-hidden="true">
      <svg class="foglio__ombra" data-ombra><path data-ombra-forma /></svg>
      <div class="foglio__carta" data-carta>
        <svg class="schizzo" data-schizzo-svg>
          <defs>
            <filter id="grafite" x="-5%" y="-5%" width="110%" height="110%">
              <feTurbulence type="fractalNoise" baseFrequency="1.4" numOctaves="2" seed="4" result="g" />
              <feDisplacementMap in="SourceGraphic" in2="g" scale="1.3" xChannelSelector="R" yChannelSelector="G" />
            </filter>
          </defs>
          <g data-tratti filter="url(#grafite)"></g>
        </svg>
      </div>
      <svg class="foglio__risvolto" data-risvolto>
        <defs>
          <linearGradient id="risvoltoLuce" gradientUnits="userSpaceOnUse" data-risvolto-luce>
            <stop offset="0" stop-color="#fffdf8" />
            <stop offset=".35" stop-color="#f3efe6" />
            <stop offset="1" stop-color="#e2ddd2" />
          </linearGradient>
        </defs>
        <path class="risvolto__ombra" data-risvolto-ombra />
        <path class="risvolto__forma" data-risvolto-forma fill="url(#risvoltoLuce)" />
        <path class="risvolto__piega" data-risvolto-piega />
      </svg>
      <svg class="matita" data-matita viewBox="0 0 120 20">
        <!-- a graphite pencil seen from the side: the lead, the sharpened cedar, the hexagonal body with its facets -->
        <path d="M0 10 L7 8.6 V11.4Z" fill="#2c2b29" />
        <path d="M7 8.6 L24 4.6 V15.4 L7 11.4Z" fill="#e6c79f" />
        <path d="M7 8.6 L24 4.6 V8.2 L12 9.6Z" fill="#f2dcbc" />
        <path d="M11 9.6 c3-.6 7-1.6 13-2.2 M11 10.6 c4 .3 8 .9 13 1.6" stroke="rgba(150,110,70,.35)" stroke-width=".5" fill="none" />
        <path d="M24 4.6 H112 V15.4 H24Z" fill="#3b3a37" />
        <path d="M24 4.6 H112 V7.4 H24Z" fill="#5b5955" />
        <path d="M24 12.6 H112 V15.4 H24Z" fill="#262523" />
        <path d="M24 4.6 c3 1.8 3 9 0 10.8" fill="#e6c79f" />
        <path d="M112 4.2 H120 V15.8 H112Z" fill="#a8a29a" />
        <path d="M112 4.2 H120 V6.4 H112Z" fill="#cfc9c0" />
        <path d="M114 4.2 V15.8 M116.5 4.2 V15.8" stroke="#8a847c" stroke-width=".6" />
      </svg>
    </div>

    <svg class="puntatore" data-puntatore viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.2l13.6 8.1-6 1.3-2.9 5.6z" /></svg>
  </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.

41 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 “Tracing paper 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

On a warm white there is the index of Thornbury, a made-up interior architecture studio: the logo, the menu, “Rooms that hold the light.” and three projects, each with its real photo: the leather sling chair before tall windows with linen curtains on an oak floor, the striped armchair against sage walls in the northern light, the green sofa in the evening sun from a glass door. Hover a project and the thumbnail rises two pixels, the name widens on the wdth axis and an arrow comes in. Open it and a sheet of tracing paper slides in from the right, passes the mark by a few pixels and settles: the page underneath stays visible, milky and soft, with the grain and fibres of the paper. A drawn graphite pencil sketches the project page on it: the boxes of the logo and the back button with lines running past the corners, the dividing rules, the large photo with its two diagonals and the “16 : 10” dimension, the title traced in outline letter by letter with the note “H1”, the lines of text as quick waves, and last a red pencil loop around the title. Under the sheet the page changes and shows through the paper; then the bottom corner lifts, the fold travels across the sheet with a lighter flap, its shadow and a thin line of light on the crease, and the sheet is pulled away upwards, turning. “All work” does it all from the left side, sketching the index. A drawn pointer opens the three projects one after another and steps aside as soon as you touch it.

How it works

The next page, measured in secret

The arrival page is laid out hidden with visibility and every element marked with data-schizzo is measured: that way the sketch on the sheet lands exactly over the real page.

The photos

The three rooms are real webp photos next to index.html, with width and height written in: the box has its size before the photo arrives, so the sketch measures right even the first time. object-fit: cover crops them to 16 : 10 in the thumbnails and to full height on the project page; opening a project only changes src, and the photo is already cached because the index loaded it.

The pencil strokes

Every box is four lines that run a few pixels past the corners, with a slight random bow that is always the same (a seeded generator); lines of text are waves, the title is its own words in an SVG text with no fill. Each stroke is drawn with stroke-dashoffset and the pencil follows its tip with getPointAtLength.

The paper

The sheet is a light veil at 80 per cent with backdrop-filter, with two SVG noises on top: a fine grain and long fibres stretched horizontally. The graphite goes through a light feDisplacementMap that breaks up the line.

The fold

The fold is a line at distance d from the corner, perpendicular to the direction of the pull: the part past the fold is removed with clip-path and drawn again mirrored over the fold as the flap, with a lighter gradient on its back, its shadow on the sheet and a thin line of light on the crease. Then the whole sheet leaves along the same direction.

In reverse

On the way back the sheet comes in from the left, sketches the index and peels from the bottom left corner. Halfway through, a change in window size measures the sketch again, keeping how much of each stroke was already drawn.

Values to change

NameFileDefaultWhat it changes
STUDIOscript.jsThornburyThe name of the studio.
SHEETscript.js0.75Seconds the sheet takes to slide in and settle.
DRAWscript.js1.6Seconds the pencil takes to sketch the next page.
PEELscript.js1.15Seconds the sheet takes to peel off and leave.
GRAINscript.js0.32How much grain and fibre the tracing paper has, from 0 to 1.
LOOPscript.js11 draws the red pencil loop around the title, 0 leaves it out.
PAUSEscript.js2.2Seconds the demo stays on a page.
--lucidostyle.cssrgba(249, 247, 241, .8)The colour and transparency of the tracing paper.
--grafitestyle.css#4b4945The colour of the pencil.
--accentostyle.css#c8432bThe accent: the red pencil around the title.

Try them in the Playground

When to use it

For the step between the list of work and a single project on the site of an architecture, interiors, graphic design or illustration studio: it says “first we draw it, then we build it”.

On phones

The same transition with adapted sizes: the pages are sized on the height too, the sketch follows the page as laid out for the phone and the fold starts from the corner of the screen.

With reduced motion

No sheet and no pencil: the next page fades in.

Pitfalls

  • The arrival page must be laid out with visibility: hidden and not display: none, or it has no size and the sketch ends up in the top left corner.
  • The title is split into words only once; when its text changes (another project) the mark must be removed, or the words can’t be found again.
  • clip-path on the sheet also cuts its shadow: the sheet’s shadow is a separate path underneath, blurred.
  • A photo without width and height has zero height until it arrives: a sketch measured at that moment would skip the image. With both sizes written on the img the box is right from the start.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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