Skip to content
animorio
IT
Back to the library

Fanned app screens

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

Scroll inside the preview

The product tour of Pennywell, a made-up money app, in the clean style of product pages: as you scroll, four stacked screens fan out from the middle, then one at a time comes to the front and straightens up, its content waking up, while the caption below rolls to its name like a drum; at the end they fold back into the pile.

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>
<!--
  "Fanned app screens" 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>Pennywell</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 product tour of Pennywell, a made-up money app. The stage sticks while you scroll: four screens stacked in a
       pile fan out from the middle, then one at a time comes to the front and straightens up while its caption rolls in
       beside it, and at the end they fold back into the pile. -->
  <main>
    <section class="corsa" data-corsa>
      <div class="palco" data-palco>
        <header class="testa">
          <div class="marchio">
            <svg viewBox="0 0 20 20" aria-hidden="true"><path d="M4 15.5V8.5a6 6 0 0 1 12 0v7"/><path d="M8 15.5v-5a2 2 0 0 1 4 0v5"/></svg>
            <span>Pennywell</span>
          </div>
          <span class="testa__lato">Product tour</span>
        </header>

        <div class="scena" data-scena>
          <div class="pila" data-pila>

            <!-- home -->
            <article class="schermo" data-schermo>
              <div class="schermo__dentro">
                <div class="barra"><span>9:41</span><i class="barra__icone"></i></div>
                <p class="piccolo">Good morning, Ana</p>
                <div class="saldo">
                  <p class="piccolo chiaro">Total balance</p>
                  <p class="saldo__cifra">$4,280.15</p>
                  <svg class="linea" viewBox="0 0 100 30" preserveAspectRatio="none" aria-hidden="true"><path data-linea d="M0 24 C10 22 14 14 24 16 S38 26 48 18 S62 6 72 10 S88 16 100 4"/></svg>
                </div>
                <div class="azioni">
                  <span class="azione"><svg viewBox="0 0 20 20"><path d="M10 15V5M5 10l5-5 5 5"/></svg>Send</span>
                  <span class="azione"><svg viewBox="0 0 20 20"><path d="M10 5v10M5 10l5 5 5-5"/></svg>Request</span>
                  <span class="azione"><svg viewBox="0 0 20 20"><rect x="3" y="5" width="14" height="10" rx="2"/><path d="M3 9h14"/></svg>Cards</span>
                </div>
                <div class="riga"><span class="riga__icona"><svg viewBox="0 0 20 20"><path d="M5 8h10l-1 8H6z M8 8V6a2 2 0 0 1 4 0v2"/></svg></span><span class="riga__nome">Corner Market</span><span class="riga__cifra">-$32.40</span></div>
                <div class="riga"><span class="riga__icona"><svg viewBox="0 0 20 20"><path d="M4 12l3-6h6l3 6v3H4z M6 15v1 M14 15v1"/></svg></span><span class="riga__nome">Metro card</span><span class="riga__cifra">-$20.00</span></div>
              </div>
            </article>

            <!-- list -->
            <article class="schermo" data-schermo>
              <div class="schermo__dentro">
                <div class="barra"><span>9:41</span><i class="barra__icone"></i></div>
                <p class="titolo">Payments</p>
                <div class="filtri"><span class="filtro attivo">All</span><span class="filtro">In</span><span class="filtro">Out</span></div>
                <p class="piccolo chiaro">Today</p>
                <div class="riga"><span class="riga__icona"><svg viewBox="0 0 20 20"><path d="M6 4h8v12l-4-2-4 2z"/></svg></span><span class="riga__nome">Paperleaf Books</span><span class="riga__cifra">-$18.90</span></div>
                <div class="riga"><span class="riga__icona accento"><svg viewBox="0 0 20 20"><path d="M10 15V5M5 10l5-5 5 5"/></svg></span><span class="riga__nome">Salary, Arbor Co.</span><span class="riga__cifra piu">+$2,640.00</span></div>
                <div class="riga"><span class="riga__icona"><svg viewBox="0 0 20 20"><path d="M5 9a5 5 0 0 1 10 0v6H5z M8 15v1h4v-1"/></svg></span><span class="riga__nome">Hearth Coffee</span><span class="riga__cifra">-$4.60</span></div>
                <p class="piccolo chiaro">Yesterday</p>
                <div class="riga"><span class="riga__icona"><svg viewBox="0 0 20 20"><path d="M3 10h14M10 3v14"/></svg></span><span class="riga__nome">Clinic Westway</span><span class="riga__cifra">-$45.00</span></div>
                <div class="riga"><span class="riga__icona"><svg viewBox="0 0 20 20"><circle cx="10" cy="10" r="6"/><path d="M10 7v3l2 2"/></svg></span><span class="riga__nome">Gym, monthly</span><span class="riga__cifra">-$29.00</span></div>
              </div>
            </article>

            <!-- chart -->
            <article class="schermo" data-schermo>
              <div class="schermo__dentro">
                <div class="barra"><span>9:41</span><i class="barra__icone"></i></div>
                <p class="titolo">Spending</p>
                <p class="piccolo chiaro">This week</p>
                <p class="saldo__cifra scuro">$612.30</p>
                <svg class="barre" viewBox="0 0 140 80" aria-hidden="true">
                  <line x1="0" y1="72" x2="140" y2="72" class="barre__base"/>
                  <rect data-barra x="4" y="38" width="12" height="34" rx="3"/>
                  <rect data-barra x="24" y="22" width="12" height="50" rx="3"/>
                  <rect data-barra x="44" y="46" width="12" height="26" rx="3"/>
                  <rect data-barra x="64" y="10" width="12" height="62" rx="3" class="barra-alta"/>
                  <rect data-barra x="84" y="30" width="12" height="42" rx="3"/>
                  <rect data-barra x="104" y="50" width="12" height="22" rx="3"/>
                  <rect data-barra x="124" y="42" width="12" height="30" rx="3"/>
                </svg>
                <div class="giorni"><span>M</span><span>T</span><span>W</span><span>T</span><span>F</span><span>S</span><span>S</span></div>
                <div class="riga"><span class="riga__nome">Groceries</span><span class="riga__cifra">$214.80</span></div>
                <div class="riga"><span class="riga__nome">Eating out</span><span class="riga__cifra">$148.20</span></div>
                <div class="riga"><span class="riga__nome">Transport</span><span class="riga__cifra">$96.50</span></div>
              </div>
            </article>

            <!-- settings -->
            <article class="schermo" data-schermo>
              <div class="schermo__dentro">
                <div class="barra"><span>9:41</span><i class="barra__icone"></i></div>
                <p class="titolo">Settings</p>
                <div class="profilo"><span class="profilo__foto">AR</span><span><b>Ana Reyes</b><i>ana@pennywell.app</i></span></div>
                <div class="riga"><span class="riga__nome">Face unlock</span><span class="leva acceso" data-leva><i></i></span></div>
                <div class="riga"><span class="riga__nome">Payment alerts</span><span class="leva acceso" data-leva><i></i></span></div>
                <div class="riga"><span class="riga__nome">Round up savings</span><span class="leva" data-leva><i></i></span></div>
                <div class="riga"><span class="riga__nome">Currency</span><span class="riga__cifra chiaro">USD</span></div>
                <div class="riga"><span class="riga__nome">Monthly report</span><span class="leva acceso" data-leva><i></i></span></div>
              </div>
            </article>

          </div>
        </div>

        <footer class="didascalia">
          <span class="didascalia__nome" data-nome>Pennywell</span>
          <span class="didascalia__rullo" aria-live="polite"><span class="didascalia__righe" data-righe>
            <span>Four screens, one app</span>
            <span>Your money at a glance</span>
            <span>Every payment, sorted</span>
            <span>See where it goes</span>
            <span>Settings that stay quiet</span>
            <span>Four screens, one app</span>
          </span></span>
        </footer>
      </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.

77 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 “Fanned app screens” 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

The stage stays put while you scroll. At first the app’s four screens lie in a pile, slightly offset. As you scroll they fan out from the middle: the outer ones travel further, tilt more and land a moment later, and each takes its shadow. Then, one at a time, a screen comes to the front: it straightens up, grows a little, its shadow spreads and the glass sheen lights up, while the others step back into a wider fan and fade. The content wakes up: on the home screen the balance line redraws, in payments the rows slide in from the right, in the chart the bars grow with a bounce, in settings a switch turns on. Below, the caption rolls to that screen’s line like a drum. At the end they all go back into the pile. Scrolling back up, everything runs backwards.

How it works

One sticky stage and one timeline

The section is five screens tall and the stage inside is sticky, 100lvh tall. The whole tour is a paused GSAP timeline tied to the scroll by a ScrollTrigger with scrub.

Three places for each screen

Each screen has three places worked out by functions: in the pile, in the fan (shifted, lowered on the arc and tilted by its distance from the middle) and behind, when another is in front. On resize everything is measured again and the timeline is invalidated, so the values are recomputed.

Who sits on top

The z-index changes with sets inside the timeline, at the start of each turn: with scrub the sets undo themselves when you scroll back up.

Shadow and sheen from one variable

Depth is a CSS variable, --d, animated by GSAP: the shadow and the glass sheen use it in their calc, so they grow together as the screen comes forward.

The content wakes up

As the screen arrives, a small animation makes it feel alive: the balance line with its strokeDashoffset, the bars with scaleY and back.out, the switch with its knob.

The drum caption

The caption is not tied to the scrub: on every update the script works out which screen is in front and the roller of lines goes there with its own tween, so it never stops halfway.

Values to change

NameFileDefaultWhat it changes
RIDEscript.js1How much scroll the whole tour takes: 2 is twice as long.
ANGLEscript.js9Degrees between one screen and the next in the fan.
SPREADscript.js1How wide the fan opens: 0.5 is half.
LIFTscript.js1.06How much the front screen grows.
DIMscript.js0.5How faded the screens behind are: 1 not at all.
SCRUBscript.js0.7How many seconds the screens lag behind the scroll.

Try them in the Playground

When to use it

For an app’s landing page: the section that shows the main screens one at a time as you scroll, with a line for each. It suits a bank, a spending app, a health or a work app.

On phones

The same animation: the screens are sized on the stage height and are never wider than a third of the width, so the whole fan fits in the box.

With reduced motion

Nothing moves: the open fan with the home screen in front fades in, with its caption.

Pitfalls

  • The positions depend on the screens’ size: they have to be functions and, on resize, the timeline has to be invalidated, otherwise GSAP keeps the numbers of the first measurement.
  • z-index does not animate: it is changed with sets inside the timeline, which undo themselves with scrub.
  • The screens’ content uses cqw units (container-type: inline-size): that way it all scales with the screen without extra transforms.

Libraries

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

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

Testing

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