Skip to content
animorio
IT
Back to the library

Data staircase

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

Scroll inside the preview

The findings of The Open Doors Survey, a made-up foundation survey, on five square tiles laid out as a staircase: the stage holds still and, as you scroll, the whole staircase rises to the left at once, so each tile crosses the screen on a diagonal. The first one opens from a smaller window; on each one the big figure appears one character at a time in a scattered order, the sentence rises word by word from a mask and the chart (dots, bars, wait, columns, line) follows where the tile sits. Below, the rail of themes with a sliding pill. Inspired by the Where Opportunity Takes Root site.

Rebuilt from scratch studying opportunity.waltonfamilyfoundation.org by Gladeye: 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>
<!--
  "Data staircase" 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 Open Doors Survey · Larkfield Foundation</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/newsreader@5.3.0/opsz.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/newsreader@5.3.0/opsz-italic.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- The findings of a made-up survey, The Open Doors Survey of the Larkfield Foundation, as square data tiles laid
       out on a staircase. The stage holds still while you scroll and the whole staircase slides up and to the left at
       once, so every tile crosses the screen on a diagonal. The first tile opens from a smaller window as it arrives;
       on each tile the big figure appears one character at a time in a scattered order, the sentence rises word by
       word from a mask, and a small chart is scrubbed by where the tile sits on the screen. -->
  <main>
    <section class="apertura">
      <p class="occhiello">Larkfield Foundation <span>The Open Doors Survey</span></p>
      <h1 class="titolo" data-titolo>How close is the nearest open door?</h1>
      <p class="sotto" data-sotto>We asked 4,200 adults in towns of fewer than 20,000 people what they can reach, and how easily.</p>
      <span class="scendi" aria-hidden="true">
        <svg viewBox="0 0 16 16"><path d="M8 2.5v10M3.5 8.5 8 13l4.5-4.5" /></svg>
      </span>
    </section>

    <section class="corsa" data-corsa>
      <div class="palco" data-palco>
        <header class="testa">
          <h2 class="testa__titolo">What&rsquo;s within reach</h2>
          <p class="testa__nota">Small towns, 2026</p>
        </header>

        <div class="campo" data-campo>
          <div class="fila" data-fila></div>
        </div>

        <nav class="binario" data-binario aria-label="Findings">
          <span class="binario__pillola" data-pillola aria-hidden="true"></span>
        </nav>
      </div>
    </section>

    <footer class="piede">
      <p>The Open Doors Survey. A made-up survey for this demo: 4,200 adults, towns under 20,000 people.</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.

51 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 “Data staircase” 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 with the title «How close is the nearest open door?» in a serif, rising word by word from a mask with a five-degree turn, and with the lime label of the survey. Scrolling down, the stage arrives: «What’s within reach» at the top, a pill rail with the five themes at the bottom (Libraries, Broadband, Buses, Parks, Classes). The first tile opens from a smaller window as the stage arrives; then the stage holds still and the whole row of square tiles, laid out as a staircase, rises to the left at once, so each tile crosses the screen on a diagonal and stops in the centre when the hand stops. On each paper-coloured tile with its thin border and soft shadow there is the theme at the top, a small chart in the middle and below the big figure in Mona Sans with a serif sentence: fifty dots filling with lime one after another, bars rising with a bounce, a pill running along the hour rule to 41', the near column growing to twice the far one, a line drawing itself from 2022 to 2026. The chart follows where the tile sits; the figure appears one character at a time in a scattered order and the sentence rises word by word when the tile reaches the centre, and they fade when it leaves. Tiles away from the centre are slightly smaller and lighter, a soft light slides over the paper, the rail pill runs to the right theme with a bounce, and tapping a theme takes you to its tile.

How it works

The staircase

Each tile sits i steps to the side and i times STEP_Y steps down; a single object, the row, moves back by (count − 1) steps in x and y as you scroll, with a scrub of SCRUB seconds.

The first window

Before the stage holds, from when the section reaches 75% of the screen, the first tile goes from clip-path inset(OPEN_FROM%) to inset(0).

A chart driven by position

For each tile we work out how many steps it is from the centre: at a step and a tenth the chart is at zero, at the centre it is full, like a Lottie moved frame by frame by the scroll.

Characters in a scattered order

The figure is split into characters that go from opacity 0 to 1 with stagger { each: DIGIT_STAGGER, from: "random" }; the words of the sentence rise from yPercent 100 and 5 degrees with back.out(1.7). The timeline plays when the tile reaches the centre and reverses, faster, when it leaves.

The rail

The tile closest to the centre picks the active theme: the black pill takes its position and width with back.out(1.5), and a click takes the scroll to the point of its tile.

Values to change

NameFileDefaultWhat it changes
TILESscript.js[{ theme: "Libraries", figure: "64%", chart: "dots", value: 0.64, … }, …]The tiles: the theme, the big figure, the unit beside it, the sentence (em for italics), the chart (dots, bars, wait, pair, line) and its value.
RIDEscript.js1How much scroll it takes to cross the whole staircase: 2 is twice as long.
STEP_Yscript.js0.55How much each step rises compared with how far it goes sideways: 1 is 45 degrees, 0 is a straight row.
SCRUBscript.js0.5The soft lag with which the staircase follows the scroll, in seconds.
DIGIT_STAGGERscript.js0.1The time between one character of the figure and the next, arriving in a scattered order.
WORD_TIMEscript.js0.75How long one word of the sentence takes to rise, in seconds.
OPEN_FROMscript.js25How closed the first tile is when it arrives, in percent per side.
--accentostyle.css#e7e72bThe lime of the dots, the bars, the pill on the rule and the survey label.
--cartastyle.css#fffcf8The warm paper of the background.

Try them in the Playground

When to use it

For the findings of a report, a survey or an impact report, for the «our impact» page of a foundation or a nonprofit, or for the numbers of a landing page when each figure needs its own chart and sentence: they are read one at a time, large, and the diagonal gives the scroll a rhythm.

On phones

The same animation with adapted sizes: the tile is sized on the width and height of the stage (at most three quarters of the screen), the staircase rises the same way, the rail of themes stays on one row and the title goes on two lines.

With reduced motion

No sliding staircase: the tiles stand in a column one below the other, with the charts already full and the figures and sentences already in place, and they fade in as they arrive.

Pitfalls

  • Never once: true on the timeline with ScrollTrigger: opening the page already scrolled would freeze the scroll. Here there are only two scrubbed tweens.
  • The figure is split into characters that all stay in the row from the start, just transparent: so the row never changes width while the characters arrive and nothing jumps.
  • The tile size depends on the height of the stage: the staircase is measured again on resize and the scroll recomputed with ScrollTrigger.refresh, even halfway through the ride.
  • Rising tiles passed over the stage title: the header has a paper background that fades out, and tiles that have gone by fade more than those still coming.

Libraries

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

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

Testing

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