Skip to content
animorio
IT
Back to the library

Colour veil transition

Transitions, Text, HoverGSAP, CSS onlyMediumCompressed weight: Demo 9.0 KBGSAP 28 KBFreeDownload the zip

Halden Row, a made-up neighbourhood with three walks: Gardens, Workshops and Market, three big rows in a tall condensed face on paper that fill with the colour of the walk on hover. Pick a walk and a veil in its light colour rises with foggy tails and no hard edge, and inside it the giant name in the dark colour, letter by letter; the veil carries on and leaves upwards, and the card of the walk swings in from the right turned by 10 degrees, with its texts rising, its lines drawing themselves and the route tracing itself on a small map with its stops. Prev and Next go through the veil again, Share says «Link copied», Close sends it away turned. Minimal style. From the chapter transition of the Colonia Zacamil site, Awwwards Site of the Day on 1/10/2026.

Rebuilt from scratch studying coloniazacamil.com by Adoratorio Studio, 60fps: 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>
<!--
  "Colour veil 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>Halden Row, three walks</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/big-shoulders@5.3.0/standard.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/newsreader@5.3.0/index.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/jetbrains-mono@5.3.0/index.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- Halden Row, a made-up neighbourhood with three walks. Pick a walk: a veil in its light colour rises with soft
       foggy edges and no hard border, the name of the walk comes up letter by letter, huge and condensed, the veil
       carries on and leaves upwards, and the card of the walk swings in from the right, turned by 10 degrees, with
       its lines drawing themselves. Prev and Next go through the walks, Close sends the card away turned again. -->
  <div class="palco" data-palco>

    <main class="pagina" data-pagina>
      <span class="pagina__tinta" data-tinta aria-hidden="true"></span>
      <header class="testa">
        <span class="marchio">
          <svg class="marchio__segno" viewBox="0 0 20 20" aria-hidden="true"><path d="M3 17V8l7-5 7 5v9M7.5 17v-5h5v5" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linejoin="round"/></svg>
          Halden Row
        </span>
        <span class="etichetta">[ three walks ]</span>
      </header>

      <div class="apertura">
        <p class="etichetta etichetta--sopra">[ choose a walk ]</p>
        <h1 class="titolo">Three slow walks<br>through Halden Row</h1>
      </div>

      <ul class="percorsi" data-percorsi>
        <li><button class="percorso" type="button" data-percorso="0"><span class="percorso__colore" aria-hidden="true"></span><span class="percorso__nome">Gardens</span><span class="percorso__dati">[ 1.4 km · 35 min ]</span><svg class="percorso__freccia" viewBox="0 0 24 12" aria-hidden="true"><path d="M1 6h20M16.5 1.5 21 6l-4.5 4.5" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/></svg></button></li>
        <li><button class="percorso" type="button" data-percorso="1"><span class="percorso__colore" aria-hidden="true"></span><span class="percorso__nome">Workshops</span><span class="percorso__dati">[ 0.9 km · 25 min ]</span><svg class="percorso__freccia" viewBox="0 0 24 12" aria-hidden="true"><path d="M1 6h20M16.5 1.5 21 6l-4.5 4.5" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/></svg></button></li>
        <li><button class="percorso" type="button" data-percorso="2"><span class="percorso__colore" aria-hidden="true"></span><span class="percorso__nome">Market</span><span class="percorso__dati">[ 1.1 km · 30 min ]</span><svg class="percorso__freccia" viewBox="0 0 24 12" aria-hidden="true"><path d="M1 6h20M16.5 1.5 21 6l-4.5 4.5" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/></svg></button></li>
      </ul>
    </main>

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

    <article class="scheda" data-scheda role="dialog" aria-modal="false" aria-labelledby="scheda-nome" aria-hidden="true" inert>
      <div class="scheda__barra">
        <span class="scheda__conta">[ Halden Row ]</span>
        <div class="scheda__tasti">
          <button class="tondo" type="button" data-prev aria-label="Previous walk"><span class="tondo__fondo"></span><svg class="tondo__icona" data-sposta="-1" viewBox="0 0 16 16" aria-hidden="true"><path d="M13 8H3.5M7 4 3 8l4 4" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
          <button class="tondo" type="button" data-next aria-label="Next walk"><span class="tondo__fondo"></span><svg class="tondo__icona" data-sposta="1" viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h9.5M9 4l4 4-4 4" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
          <button class="tondo" type="button" data-share aria-label="Copy the link of this walk"><span class="tondo__fondo"></span><svg class="tondo__icona" data-sposta="up" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 10.5V2.5M4.8 5.6 8 2.4l3.2 3.2M3 9v4.5h10V9" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/></svg><span class="copiato" data-copiato role="status">Link copied</span></button>
          <button class="tondo" type="button" data-close aria-label="Close the walk"><span class="tondo__fondo"></span><svg class="tondo__icona" data-sposta="x" viewBox="0 0 16 16" aria-hidden="true"><path d="M4 4l8 8M12 4l-8 8" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round"/></svg></button>
        </div>
      </div>
      <span class="linea linea--o" data-linea-o aria-hidden="true"></span>

      <div class="scheda__corpo">
        <p class="scheda__tipo" data-sale data-tipo>[ walk ]</p>
        <h2 class="scheda__nome" id="scheda-nome" data-sale data-nome>Gardens</h2>
        <p class="scheda__testo" data-sale data-testo>Six shared courtyards, two orchards and the long greenhouse behind the old laundry.</p>

        <div class="scheda__mappa" data-sale>
          <svg viewBox="0 0 300 90" aria-hidden="true" preserveAspectRatio="xMidYMid meet">
            <path class="mappa__strada" data-strada pathLength="1" d="" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
            <g data-tappe></g>
          </svg>
        </div>

        <ul class="scheda__tappe" data-elenco></ul>
      </div>
      <span class="linea linea--v" data-linea-v aria-hidden="true"></span>
    </article>
  </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.

29 values to change

Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI

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 “Colour veil 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 warm paper, at the top the Halden Row mark with a little house drawn in a fine line and «[ three walks ]» in mono; below, the title «Three slow walks through Halden Row» and three big rows, Gardens, Workshops and Market, in a tall condensed capital face, each with its length and time in square brackets and a thin arrow. On hover over a row its light colour fills it from the left, the word gains weight, moves 10 px and darkens into the colour of the walk, and the arrow steps forward. On a click a veil in the light colour of the walk (sage, terracotta or pale blue) rises from below with two foggy tails twice the screen tall, so you never see an edge, only a fog of colour; inside, the name of the walk, huge and in the dark colour, comes up letter by letter. After two seconds the veil carries on upwards and the letters leave too, one after the other. From the right the card in the dark colour swings in, turned by 10 degrees and a little lower, straightening as it lands: inside, the label with the length, the name, the sentence and the small map rise 120 px, one after the other; the horizontal line under the buttons and the vertical one on the edge draw themselves, the route traces itself on the map and the ticks of the stops pop up with a small bounce, and below the four stops with their times arrive with their hairlines. At the top four round paper buttons: on hover the circle shrinks and the icon moves 5 px, the X turns and grows. Next and Prev send the card away and go through the veil again with the next walk; Share brings up «Link copied»; Close (or Esc) sends the card back to the right, turned. Left alone, the page hovers a row, opens the walk, copies the link, moves to the next one and closes.

How it works

A veil with no edge

The veil is a fixed panel as big as the screen with two pseudo-elements 200% tall, above and below, made of a linear-gradient from transparent to its colour. GSAP takes it from yPercent 300 to 0 in 1 s with power4.out and, at 2 s, to yPercent -300 in 1 s with power4.in: you never see the edge, a fog of colour goes by.

The word letter by letter

The name is split into one span per letter inside a mask with overflow hidden. The letters rise from yPercent 100 to 0, .055 s apart, in 1 s with power3.out, and leave to -100 with a .05 s stagger and power4.inOut together with the veil. The type size starts from min(700 px, 40% of the width) and shrinks if the word does not fit.

The card that straightens

The card comes in from xPercent 120, yPercent 20 and rotation 10 to zero in 1.5 s with cubic-bezier(.25,1,.5,1), a curve that arrives almost at once and then settles slowly. Inside, each part rises 120 px in 1.3 s and lights up in 1 s with delays of .2, .25, .3 and .35 s; the lines draw from scaleX 0 and scaleY 0 in 1.5 s. It leaves in .5 s with cubic-bezier(.55,.055,.675,.19) towards the same turned place.

The map that traces itself

The route is a path with pathLength 1 and a stroke-dashoffset going from 1 to 0; the ticks of the stops grow from scaleY 0 with back.out at a fixed distance from each other. AutoRound is off, otherwise GSAP would round the value to 0 or 1 and the line would appear all at once.

Prev, Next, Share and Close

Prev and Next send the card away and call the veil again with the new walk; the content changes while the veil covers everything. The round buttons are a circle and an icon kept apart: on hover the circle goes to scale .85 and the icon moves 5 px, the X turns 90 degrees and grows to 1.5. Share copies the link and brings up «Link copied»; Esc and the arrow keys work.

Values to change

NameFileDefaultWhat it changes
RISEscript.js1Seconds the veil takes to rise (the site uses 1).
HOLDscript.js2Seconds from the start of the veil to the moment it leaves (the site uses 2).
LEAVEscript.js1Seconds the veil takes to leave upwards (the site uses 1).
LETTER_STAGGERscript.js0.055Seconds between one letter and the next coming in (the site uses .055).
CARD_INscript.js1.5Seconds the card takes to swing in (the site uses 1.5).
CARD_TURNscript.js10Degrees the card is turned when it comes in and leaves (the site uses 10).
CARD_OUTscript.js0.5Seconds the card takes to leave (the site uses .5).
LIFTscript.js120Pixels the parts inside the card rise from (the site uses 120).
WORD_SIZEscript.js0.4Largest size of the word as a share of the screen width (the site uses 40vw).
PAUSEscript.js2.4Seconds between one step and the next of the tour on its own.

Try them in the Playground

When to use it

To move between the sections of a guide, an itinerary, a festival or a site with chapters: each chapter has its own colour pair and its word, and the detail arrives in a card that does not cover the whole page.

On phones

Same timings and the same road. Under 700 px the card covers the box with 10 px around it, the length of the walks hides from the rows and the word shrinks until it fits; with little height the card shows two stops.

With reduced motion

No rising and no turning: the veil fades in and out with the word already in place, the card fades in with its lines and route already drawn.

Pitfalls

  • A panel with a hard edge rising looks like a blind: the two foggy tails 200% tall must have the panel’s colour, and the panel must start from yPercent 300 so they are all off screen.
  • The card content changes only while the veil covers everything, otherwise you see the new walk on the old card leaving.
  • The giant word at 40vw does not fit on a phone with nine letters: it is measured after being written and the type shrinks as needed.
  • GSAP rounds to whole pixels by default: with pathLength 1 the stroke would jump from 1 to 0. Here autoRound is off.

Libraries

GSAP 3.15.0, Big Shoulders (font variabile) 5.3.0, Newsreader (font variabile) 5.3.0, JetBrains Mono (font variabile) 5.3.0.

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

Testing

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