Skip to content
animorio
IT
Back to the library

Askew chapters

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

Scroll inside the preview

The story of a made-up spring water, Stillmere, in three chapters on a stage that stays put while you scroll: past each chapter’s threshold the old headline’s lines leave upwards leaning back and the new ones rise from below leaning forward, settling on a short spring; the two pictures beside it fold askew into their bottom edge and the new ones open out of it. Within a chapter the pictures tilt and drift as you scroll. Minimal style, warm 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>
<!--
  "Askew chapters" 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>Chapters that swap askew on scroll</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource/instrument-serif@5.3.0/400.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/mona-sans@5.3.0/wdth.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- the story of a made-up spring water, Stillmere, told in three chapters. The section is tall and its stage stays
       on screen: the chapter shown is the part of the section you are in. When you cross into the next one, the lines
       of the old headline leave upwards, leaning back, and the new ones rise from below, leaning forward, and settle
       on a spring; the two small pictures beside the headline fold away into their bottom edge and the new ones open
       from it. Inside a chapter the pictures tilt a little more and drift as you scroll -->
  <main class="pagina">
    <section class="storia" data-storia aria-label="The Stillmere story">
      <div class="palco" data-palco>
        <div class="grana" aria-hidden="true"></div>

        <header class="barra">
          <span class="marchio">STILLMERE</span>
          <nav class="capi" aria-label="Chapters">
            <button type="button" class="capo" data-capo="0" aria-current="true">Source</button>
            <button type="button" class="capo" data-capo="1">Stone</button>
            <button type="button" class="capo" data-capo="2">Glass</button>
          </nav>
        </header>

        <!-- chapter: the source -->
        <article class="capitolo" data-capitolo>
          <h2 class="motto" data-motto>
            <span class="riga"><span class="riga__in">We take <em>nothing</em> out,</span></span>
            <span class="riga"><span class="riga__in">we add <em>nothing</em> in.</span></span>
          </h2>
          <figure class="carta carta--sinistra" data-carta>
            <div class="media" data-media>
              <img src="ghiaccio.webp" width="960" height="600" alt="Pale lake ice, cracked across, under a thin layer of snow" style="object-position: 50% 50%" loading="eager" decoding="async" />
              <span class="lampo" data-lampo aria-hidden="true"></span>
            </div>
          </figure>
          <figure class="carta carta--destra" data-carta>
            <div class="media" data-media>
              <img src="cresta.webp" width="1024" height="683" alt="A snowy mountain ridge going into the clouds" style="object-position: 40% 50%" loading="eager" decoding="async" />
            </div>
          </figure>
          <div class="nota" data-nota>
            <p class="nota__titolo" data-riga-nota>Nothing added. Nothing removed.</p>
            <p class="nota__testo" data-riga-nota>What leaves the spring is what fell as snow.</p>
          </div>
        </article>

        <!-- chapter: the stone -->
        <article class="capitolo" data-capitolo>
          <h2 class="motto" data-motto>
            <span class="riga"><span class="riga__in">Water that waited</span></span>
            <span class="riga"><span class="riga__in"><em>ten thousand</em> winters</span></span>
            <span class="riga"><span class="riga__in">under the <em>stone</em>.</span></span>
          </h2>
          <figure class="carta carta--sinistra" data-carta>
            <div class="media" data-media>
              <img src="granito.webp" width="960" height="640" alt="A face of grey granite, split along its grain" style="object-position: 35% 50%" loading="eager" decoding="async" />
            </div>
          </figure>
          <figure class="carta carta--destra" data-carta>
            <div class="media" data-media>
              <img src="goccia.webp" width="1024" height="683" alt="A drop falling into dark still water, rings opening around it" style="object-position: 62% 50%" loading="eager" decoding="async" />
            </div>
          </figure>
          <div class="nota" data-nota>
            <p class="nota__titolo" data-riga-nota>Filtered by granite.</p>
            <p class="nota__testo" data-riga-nota>Snowmelt sinks through the mountain and comes back cold and clear.</p>
          </div>
        </article>

        <!-- chapter: the glass -->
        <article class="capitolo" data-capitolo>
          <h2 class="motto" data-motto>
            <span class="riga"><span class="riga__in">Bottled <em>where</em></span></span>
            <span class="riga"><span class="riga__in">it rises,</span></span>
            <span class="riga"><span class="riga__in">still <em>cold</em>.</span></span>
          </h2>
          <figure class="carta carta--sinistra" data-carta>
            <div class="media" data-media>
              <img src="bottiglia.webp" width="683" height="1024" alt="A bottle of clear glass with a long neck, on a pale sage ground" style="object-position: 50% 60%" loading="eager" decoding="async" />
              <span class="riflesso" data-riflesso aria-hidden="true"></span>
            </div>
          </figure>
          <figure class="carta carta--destra" data-carta>
            <div class="media" data-media>
              <img src="riva.webp" width="960" height="640" alt="A still lake shore, pebbles under clear water and mountains reflected" style="object-position: 55% 50%" loading="eager" decoding="async" />
            </div>
          </figure>
          <div class="nota" data-nota>
            <p class="nota__titolo" data-riga-nota>Bottled at the source.</p>
            <p class="nota__testo" data-riga-nota>One spring, one valley, one bottle of clear glass.</p>
          </div>
        </article>

        <p class="scendi" data-scendi aria-hidden="true"><span>Scroll</span><svg viewBox="0 0 12 40"><path d="M6 0v36" /><path d="M2 32l4 6 4-6" /></svg></p>
      </div>
    </section>

    <footer class="chiusa">
      <p class="chiusa__marchio">Stillmere</p>
      <p class="chiusa__riga">Spring water from a still lake.</p>
    </footer>
  </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.

46 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 “Askew chapters” 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 brand, STILLMERE, in a spaced serif, and on the right the names of the three chapters, Source, Stone and Glass, with the current one darker and wider. In the middle the first headline, “We take nothing out, we add nothing in.”, in a large serif with the key words in italic; its lines rise one after the other from below their own edge, leaning forward, and straighten up. On either side two small real photos with rounded corners, pale lake ice with a glint crossing it and a snowy ridge going into the clouds, open out of their bottom edge, one a tenth of a second after the other, and land with a pixel of settle; below, an uppercase line and a sentence. As you scroll the stage stays put: the pictures tilt more and more, in opposite directions, and drift up and down against the headline. A third of the way down the section the chapter changes: the old lines leave upwards leaning back and shrinking, the pictures fold askew into their bottom edge, and a tenth of a second later the chapter of the rock comes in, “Water that waited ten thousand winters under the stone.”, with a face of granite and a drop falling into dark water and opening its rings. Then the chapter of the glass, “Bottled where it rises, still cold.”, with a clear glass bottle with light running down it and the still shore of a lake with the mountains reflected. Every photo breathes slowly, as if the camera were still settling. Scrolling back, the chapters return the same way. Clicking a chapter’s name takes you there.

How it works

The stage and the chapters

The section is as tall as the chapters times CHAPTER_HEIGHT screens and holds a sticky stage 100lvh tall. All the chapters sit on the same stage, one on top of the other, and only one shows. A ScrollTrigger from top top to bottom bottom gives the section’s progress; the chapter to show is floor(progress times the number of chapters), as on the original.

A threshold, not a scrub

The swap doesn’t follow the scroll: when the index changes, the old chapter gets the timeline that hides it and the new one, a tenth of a second later, the one that shows it. The timelines last 0.7 seconds however fast you scroll, and a new one kills the one running.

Lines that come in askew

Each headline line is a block with overflow: clip and two tenths of an em of room above and below, so italics and tall letters aren’t cut. Inside, the line comes in from yPercent 100, skewX 10 degrees and scale 1.04 with expo.out; it leaves to yPercent -104, skewX -12 and scale 0.96 with opacity 0.2, five hundredths of a second apart. The small lines below come in on a spring.

The anime.js spring

The original uses anime.js createSpring with bounce 0.214 and a perceived duration of 700 milliseconds. We rebuild it by hand: stiffness (2π/0.7) squared, damping (1 − 0.214) times 4π/0.7, the damped oscillator’s solution as an easing function, and the time the spring really takes to stop as the tween’s duration.

Pictures that open from their edge

Each picture opens from scale 0, skewX 12 and skewY 10 degrees, opacity 0 and a clip-path of inset(100% 0 0 0 round 16px), that is, shut into its bottom edge, to fully open in 0.8 seconds, a tenth apart; it folds back the same way. As it lands it drops a pixel and a half and comes back up.

Tilt and drift

On every scroll update the progress inside each chapter is measured; the offset is (the section’s progress plus the chapter’s) times −2.5 hundredths of the screen height. The headline follows it fully, the line below at three quarters, the pictures five times, in opposite directions that swap from one chapter to the next, and they rotate up to 15 degrees by the end of the chapter. On narrow screens the pictures move at 30 per cent.

Values to change

NameFileDefaultWhat it changes
CHAPTER_HEIGHTscript.js150How much scroll each chapter lasts, in screen heights.
DURATIONscript.js0.7Seconds of the swap between one chapter and the next.
LINE_STAGGERscript.js0.05Seconds between one headline line and the next.
PICTURE_STAGGERscript.js0.1Seconds between the two pictures.
BOUNCEscript.js0.214How much the spring the small lines settle on bounces (0 none, 0.6 a lot).
LEANscript.js10How many degrees the lines lean as they come in.
TILTscript.js15How many degrees the pictures tilt by the end of their chapter.
DRIFTscript.js2.5How far everything drifts as you scroll, in hundredths of the screen height.
SMOOTHscript.js1.1Seconds of the smooth scroll; 0 for the browser’s own.

Try them in the Playground

When to use it

To tell the story of a brand, a product or a place in a few chapters: a drink’s philosophy, the steps of a craft, a company’s values, the rooms of a hotel. It works when each chapter has one strong sentence and two small pictures.

On phones

The same swap with the same curves: the pictures go above and below the headline instead of beside it, sized on the height too, and drift at 30 per cent; the long sentence below goes and the uppercase line stays.

With reduced motion

The chapters swap with a half-second fade, already in place: no rising lines, no opening pictures, no tilt or drift, no life inside the pictures, no smooth scroll.

Pitfalls

  • With a scrub, stopping halfway through the scroll would leave the headline between two sentences, both unreadable: the swap has to be a threshold, with a timeline that runs on its own.
  • The lines must be clipped by a block with overflow: clip and some room above and below (padding and a negative margin of 0.2em), or the italics and tall letters come out cut.
  • A line that leaves upwards has to go back below at the end of the timeline that hides it: otherwise, coming back in, it would arrive from above.
  • GSAP moves the figure (drift and rotation) and the box inside it (opening and closing): on the same element the two transforms would cancel each other out.
  • The anime.js spring lasts longer than the 700 milliseconds you ask for: the tween must last as long as the spring takes to stop, or it halts abruptly mid-settle.
  • The photos sit in small upright frames: each has its own object-position on the subject (the drop, the ridge, the bottle neck), or the frame crops away the very thing to see.

Libraries

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

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

Testing

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