Skip to content
animorio
IT
Back to the library

Centre arch reveal

Scroll, SVGGSAP, CSS onlyMediumCompressed weight: Demo 5.4 KBGSAP + ScrollTrigger 45 KBLenis 5.3 KBFreeDownload the zip

Scroll inside the preview

The page of a made-up spring water, Stillmere: scrolling down, a sage arch grows from the centre, from a tenth of its size to its full size, a little behind the scroll, and inside it the three lines of the sentence rise one after the other, straightening out on a small spring. Then a thin dashed line draws itself along the inner edge, a light runs along it once and the arch settles by a pixel. Minimal style, white paper, sage and blue-black ink.

Rebuilt from scratch studying aupalevodka.com by Locomotive: 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>
<!--
  "Centre arch reveal" 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 arch that opens from the centre on scroll</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource/instrument-serif@5.3.0/index.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource/instrument-serif@5.3.0/400-italic.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>
  <!-- a made-up spring water, Stillmere. Scrolling down, a sage arch grows from a seed in the middle of the page to its
       full size, a little behind the scroll; its three lines rise inside it, a dashed line draws itself along the
       inner edge, the still line of the lake draws itself from the middle, and when the arch arrives a light runs once along that line and the arch settles by a pixel -->
  <main class="pagina">
    <section class="trittico" data-trittico aria-label="Stillmere">
      <div class="palco">
        <p class="marchio">Stillmere</p>
        <p class="scendi" data-scendi>Scroll</p>

        <div class="arco-scala" data-scala>
          <div class="arco" data-arco>
            <div class="arco__fondo"></div>
            <svg class="arco__linee" data-linee aria-hidden="true">
              <defs>
                <mask id="arco-maschera" maskUnits="userSpaceOnUse">
                  <path class="arco__maschera" data-maschera pathLength="1" />
                </mask>
              </defs>
              <path class="arco__tratteggio" data-tratteggio mask="url(#arco-maschera)" />
              <path class="arco__luce" data-luce pathLength="1" />
            </svg>
            <span class="arco__orizzonte" data-orizzonte></span>
            <h2 class="arco__frase" data-frase>
              <span class="riga"><span class="riga__dentro" data-riga>Left as</span></span>
              <span class="riga"><span class="riga__dentro" data-riga>the <em>mountain</em></span></span>
              <span class="riga"><span class="riga__dentro" data-riga>made it.</span></span>
            </h2>
          </div>
        </div>

        <p class="didascalia"><span class="riga"><span class="riga__dentro" data-didascalia>Stillmere spring water</span></span></p>
      </div>
    </section>
  </main>

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

21 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 “Centre arch reveal” 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

It opens on warm white paper with a very fine grain: at the top the name, “Stillmere”, in a thin serif; in the middle a sage arch as small as a seed, a tenth of its size; at the bottom “Scroll” in capitals. Scrolling down, the page stays still and the arch grows from the centre on a curve that starts fast and lands slowly, half a second behind the scroll, so it keeps settling after the hand stops. Once it is large, the three lines of the sentence rise inside it one after the other, “Left as / the mountain / made it.”, with “mountain” in italics: each comes out of its own window from below, slanted by ten degrees and a little larger, and straightens on a small spring that goes past by a hair and comes back. Then a thin dashed line draws itself along the inner edge of the arch, from the bottom left, over the half circle and down the right; the still line of the lake opens from the middle near the bottom and the caption “Stillmere spring water” rises under the arch. When the line closes, a white light runs along it once and the arch goes past its size by one pixel and settles. Scrolling back undoes it all, and scrolling down again the light runs once more.

How it works

A still stage and the scroll distance

The section is 320vh tall and holds a sticky stage 100lvh tall: the page scrolls for 220vh while the arch stays in the middle. Each movement has its own ScrollTrigger on the same section, with start and end written as shares of that distance (0 to 55 per cent for the arch, 20 to 62 for the lines, 50 to 82 for the line), measured again on every refresh with invalidateOnRefresh.

Two different lags

The site ties the arch to the scroll with anime.js and sync 0.5, and the lines with sync 0.25: we redo it with ScrollTrigger’s scrub, 0.5 for the arch and 0.25 for the lines. So the arch, bigger, arrives softer and the words follow it more promptly. The scale goes from 0.1 to 1 with expo.out, the site’s outExpo curve.

The lines in their windows

Each line is a span with overflow clip and 0.15em of padding above and below, offset by a negative margin, as the site does, so ascenders and italics are not cut. Inside, the word span starts at yPercent 100, skewX 10 and scale 1.04 and reaches zero on a hand-written spring (an exponential times a cosine, normalised), close to anime.js’s with bounce 0.214.

The dashed line that draws itself

The inner outline is an SVG path measured in pixels from the size of the arch: up the left side, an arc of a circle, down the right. A dashed stroke cannot be drawn with stroke-dashoffset, which the dashes already use: so the dashed path sits under a mask, a second solid path with pathLength 1 whose dashoffset goes from 1 to 0.

The arrival, once

When the scroll passes 84 per cent a timeline starts that does not follow the scroll: a third path with a dash 0.07 long runs along the edge from end to end with a white glow, and the inner wrapper of the arch goes to a scale two pixels larger and comes back on the spring. A switch fires it once; going back below 40 per cent re-arms it.

Values to change

NameFileDefaultWhat it changes
ARCH_FROMscript.js0.1How small the arch starts, as a share of its full size.
ARCH_LAGscript.js0.5Seconds the arch takes to catch up with the scroll.
LINES_LAGscript.js0.25Seconds the lines take to catch up with the scroll.
LINE_SKEWscript.js10How many degrees of slant the lines start with.
DASHscript.js3Length of the dashes of the inner line, in pixels.
GAPscript.js5Gap between the dashes, in pixels.
SHINEscript.js1.6Seconds the light takes to run along the edge.
SETTLEscript.js1How many pixels the arch goes past its size when it arrives.
SMOOTHscript.js1.1Seconds of the smooth scroll; 0 for the browser’s own.

Try them in the Playground

When to use it

For a manifesto or promise section on a brand page: a water, a wine, a skincare line, a mountain hotel, a spa, an architecture studio. A single sentence, arriving inside a shape that grows, as you scroll down.

On phones

The same curves and the same lags: the arch is measured on both height and width (at most two thirds of the screen tall, three quarters wide) and the sentence takes its size from the arch, so everything fits in the phone preview, caption included.

With reduced motion

No growing and no rising lines: the arch is already full size, the sentence, the dashed line, the line of the lake and the caption are already in place, and the page appears with a fade. No running light and no smooth scroll.

Pitfalls

  • The stroke-dashoffset of a dashed path moves the dashes, it does not draw them: drawing a dashed line needs a mask with a second solid path.
  • With pathLength do not use vector-effect: non-scaling-stroke, or the stroke is drawn only halfway.
  • The arch’s scale goes on the outer wrapper and the arrival settle on the inner one: on the same element the scrub and the spring would cancel each other out.
  • The outline is in pixels and depends on the size of the arch: on resize it must be measured again, together with the ScrollTriggers.

Libraries

GSAP 3.15.0, ScrollTrigger 3.15.0, Lenis 1.3.26, Instrument Serif 5.3.0, JetBrains Mono (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 5.4 KB; the libraries: GSAP + ScrollTrigger 45 KB, Lenis 5.3 KB.

Testing

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