Skip to content
animorio
IT
Back to the library

Feature screen swap

Scroll, TransitionsGSAP, CSS onlyAdvancedCompressed weight: Demo 11 KBGSAP + ScrollTrigger + Flip 55 KBLenis 5.3 KBFreeDownload the zip

Scroll inside the preview

The features page of a made-up app for product teams, Orrin, in the clean style of product interfaces: on the left three blocks scroll by, Plan, Track and Ship, and on the right the app window stays put and changes with the block being read. The panels rearrange themselves with FLIP, a selection outline with its name slides onto the part the text is about and the title of the active block lights up; inside, the dates, the progress bars, the chart line, the ticks and the Ship button each do their own thing.

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>
<!--
  "Feature screen swap" 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>Orrin features</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 features page of a made-up app for product teams, Orrin. On the left three blocks of text scroll by: Plan,
       Track, Ship. On the right the app window stays put and changes with the block you are reading: its panels
       rearrange themselves (FLIP), a selection outline slides onto the part the text is about, and the title of the
       block you are reading lights up. On a phone the text sits on top and the window under it. -->
  <main>
    <header class="apertura">
      <p class="apertura__nota">Orrin for product teams</p>
      <h1 class="apertura__titolo">Plan it, track it, ship it. <span>In one calm workspace.</span></h1>
    </header>

    <section class="funzioni" data-funzioni>
      <div class="palco" data-palco>
        <div class="testi" data-testi>
          <article class="blocco" data-blocco>
            <span class="blocco__icona" aria-hidden="true">
              <svg viewBox="0 0 20 20"><rect x="3" y="4" width="14" height="13" rx="2.5" /><path d="M3 8 H17 M7 2.5 V5.5 M13 2.5 V5.5 M6.5 11.5 H9.5 M6.5 14 H12" /></svg>
            </span>
            <h2 class="blocco__titolo">Plan</h2>
            <p class="blocco__testo">Turn the quarter into six-week cycles. Every task gets an owner and a date before the work starts.</p>
            <p class="blocco__meta"><kbd>C</kbd> starts a new cycle</p>
          </article>
          <article class="blocco" data-blocco>
            <span class="blocco__icona" aria-hidden="true">
              <svg viewBox="0 0 20 20"><path d="M3 16.5 H17 M4 13 L8 9 L11 11.5 L16.5 5.5" /><path d="M13 5.5 H16.5 V9" /></svg>
            </span>
            <h2 class="blocco__titolo">Track</h2>
            <p class="blocco__testo">See the cycle move while it happens. Progress updates itself every time a task changes hands.</p>
            <p class="blocco__meta">Live for the whole team</p>
          </article>
          <article class="blocco" data-blocco>
            <span class="blocco__icona" aria-hidden="true">
              <svg viewBox="0 0 20 20"><path d="M3.5 10.5 L16.5 3.5 L12.5 16.5 L9.5 11 Z" /><path d="M9.5 11 L16.5 3.5" /></svg>
            </span>
            <h2 class="blocco__titolo">Ship</h2>
            <p class="blocco__testo">Release when the checks are green. Orrin drafts the changelog from the work that got done.</p>
            <p class="blocco__meta">One click, notes included</p>
          </article>
        </div>

        <div class="vetrina" data-vetrina>
          <div class="spazio" data-spazio>
            <div class="finestra" data-finestra aria-label="The Orrin app" role="img">
              <div class="barra">
                <svg class="barra__lato" viewBox="0 0 16 16" aria-hidden="true"><rect x="1.5" y="2.5" width="13" height="11" rx="2.5" /><path d="M6 2.5 V13.5" /></svg>
                <span class="barra__marchio">Orrin</span>
                <span class="barra__sep">/</span>
                <span class="barra__pagina">Q4 launch</span>
                <span class="barra__cerca">
                  <svg viewBox="0 0 16 16" aria-hidden="true"><circle cx="7" cy="7" r="4.5" /><path d="M10.5 10.5 L14 14" /></svg>
                  Search
                </span>
                <span class="barra__team">
                  <span class="avatar avatar--a">MK</span><span class="avatar avatar--b">JD</span><span class="avatar avatar--c">AR</span>
                </span>
              </div>

              <div class="corpo" data-corpo data-passo="plan">
                <section class="pannello lista" data-pezzo="lista">
                  <header class="pannello__testa">
                    <span class="pannello__titolo">Cycle 12</span>
                    <span class="pannello__nota">Oct 6 to Nov 14</span>
                  </header>
                  <ul class="righe" data-righe>
                    <li class="riga" data-riga data-fatto="1" data-p="1">
                      <span class="spunta"><svg viewBox="0 0 14 14"><rect x="1" y="1" width="12" height="12" rx="3.5" /><path d="M4 7.2 L6.1 9.3 L10.2 4.9" pathLength="1" /></svg></span>
                      <span class="riga__nome">Pricing page copy</span>
                      <span class="riga__meta">
                        <span class="meta meta--data">Oct 28</span>
                        <span class="meta meta--barra"><i><b></b></i><em>100%</em></span>
                        <span class="meta meta--stato meta--fatto">Done</span>
                      </span>
                      <span class="avatar avatar--a">MK</span>
                    </li>
                    <li class="riga" data-riga data-fatto="0" data-p="0.8">
                      <span class="spunta"><svg viewBox="0 0 14 14"><rect x="1" y="1" width="12" height="12" rx="3.5" /><path d="M4 7.2 L6.1 9.3 L10.2 4.9" pathLength="1" /></svg></span>
                      <span class="riga__nome">Billing webhooks</span>
                      <span class="riga__meta">
                        <span class="meta meta--data">Oct 30</span>
                        <span class="meta meta--barra"><i><b></b></i><em>80%</em></span>
                        <span class="meta meta--stato">In review</span>
                      </span>
                      <span class="avatar avatar--b">JD</span>
                    </li>
                    <li class="riga" data-riga data-fatto="1" data-p="1">
                      <span class="spunta"><svg viewBox="0 0 14 14"><rect x="1" y="1" width="12" height="12" rx="3.5" /><path d="M4 7.2 L6.1 9.3 L10.2 4.9" pathLength="1" /></svg></span>
                      <span class="riga__nome">Onboarding checklist</span>
                      <span class="riga__meta">
                        <span class="meta meta--data">Nov 3</span>
                        <span class="meta meta--barra"><i><b></b></i><em>100%</em></span>
                        <span class="meta meta--stato meta--fatto">Done</span>
                      </span>
                      <span class="avatar avatar--c">AR</span>
                    </li>
                    <li class="riga" data-riga data-fatto="0" data-p="0.45">
                      <span class="spunta"><svg viewBox="0 0 14 14"><rect x="1" y="1" width="12" height="12" rx="3.5" /><path d="M4 7.2 L6.1 9.3 L10.2 4.9" pathLength="1" /></svg></span>
                      <span class="riga__nome">Release notes</span>
                      <span class="riga__meta">
                        <span class="meta meta--data">Nov 10</span>
                        <span class="meta meta--barra"><i><b></b></i><em>45%</em></span>
                        <span class="meta meta--stato">Drafting</span>
                      </span>
                      <span class="avatar avatar--a">MK</span>
                    </li>
                    <li class="riga" data-riga data-fatto="1" data-p="1">
                      <span class="spunta"><svg viewBox="0 0 14 14"><rect x="1" y="1" width="12" height="12" rx="3.5" /><path d="M4 7.2 L6.1 9.3 L10.2 4.9" pathLength="1" /></svg></span>
                      <span class="riga__nome">Invite flow polish</span>
                      <span class="riga__meta">
                        <span class="meta meta--data">Nov 12</span>
                        <span class="meta meta--barra"><i><b></b></i><em>100%</em></span>
                        <span class="meta meta--stato meta--fatto">Done</span>
                      </span>
                      <span class="avatar avatar--b">JD</span>
                    </li>
                    <li class="riga" data-riga data-fatto="0" data-p="0.3">
                      <span class="spunta"><svg viewBox="0 0 14 14"><rect x="1" y="1" width="12" height="12" rx="3.5" /><path d="M4 7.2 L6.1 9.3 L10.2 4.9" pathLength="1" /></svg></span>
                      <span class="riga__nome">Usage alerts</span>
                      <span class="riga__meta">
                        <span class="meta meta--data">Nov 14</span>
                        <span class="meta meta--barra"><i><b></b></i><em>30%</em></span>
                        <span class="meta meta--stato">In progress</span>
                      </span>
                      <span class="avatar avatar--c">AR</span>
                    </li>
                    <li class="riga riga--nuova" data-nuova>
                      <svg viewBox="0 0 14 14" aria-hidden="true"><path d="M7 3 V11 M3 7 H11" /></svg>
                      <span>Add task</span>
                    </li>
                  </ul>
                </section>

                <section class="pannello grafico" data-pezzo="grafico">
                  <header class="pannello__testa">
                    <span class="pannello__titolo">Progress</span>
                    <span class="kpi"><b data-kpi>62</b>%</span>
                  </header>
                  <div class="grafico__area">
                    <svg viewBox="0 0 300 100" preserveAspectRatio="none" aria-hidden="true">
                      <defs>
                        <linearGradient id="sotto-linea" x1="0" y1="0" x2="0" y2="1">
                          <stop offset="0" stop-color="var(--accento)" stop-opacity="0.22" />
                          <stop offset="1" stop-color="var(--accento)" stop-opacity="0" />
                        </linearGradient>
                        <clipPath id="disegno-linea"><rect data-taglio x="0" y="-10" width="300" height="120" /></clipPath>
                      </defs>
                      <path class="grafico__griglia" d="M0 25 H300 M0 50 H300 M0 75 H300" />
                      <path class="grafico__ideale" d="M0 96 L300 6" />
                      <g clip-path="url(#disegno-linea)">
                        <path class="grafico__fondo" data-fondo d="" />
                        <path class="grafico__linea" data-linea d="" />
                      </g>
                      <path class="grafico__oggi" d="M222 0 V100" />
                    </svg>
                    <span class="grafico__oggi-nome">Today</span>
                  </div>
                  <footer class="grafico__assi"><span>Oct 6</span><span>Oct 20</span><span>Nov 3</span><span>Nov 14</span></footer>
                </section>

                <section class="pannello rilascio" data-pezzo="rilascio">
                  <header class="pannello__testa">
                    <span class="versione">v2.4</span>
                    <span class="pannello__titolo" data-rilascio-stato>Ready to ship</span>
                  </header>
                  <ul class="controlli">
                    <li><svg viewBox="0 0 14 14"><path d="M3.5 7.3 L6 9.6 L10.5 4.6" /></svg>Checks passed</li>
                    <li><svg viewBox="0 0 14 14"><path d="M3.5 7.3 L6 9.6 L10.5 4.6" /></svg>Changelog drafted</li>
                    <li><svg viewBox="0 0 14 14"><path d="M3.5 7.3 L6 9.6 L10.5 4.6" /></svg>2 of 2 approvals</li>
                  </ul>
                  <button class="spedisci" type="button" data-spedisci>
                    <span class="spedisci__fondo" data-spedisci-fondo></span>
                    <span class="spedisci__testo">
                      <span data-spedisci-a>Ship v2.4</span>
                      <span data-spedisci-b><svg viewBox="0 0 14 14" aria-hidden="true"><path d="M3.5 7.3 L6 9.6 L10.5 4.6" pathLength="1" data-spedisci-spunta /></svg>Shipped</span>
                    </span>
                  </button>
                </section>
              </div>

              <div class="evidenzia" data-evidenzia aria-hidden="true">
                <span class="evidenzia__nome"><span data-evidenzia-nome>Plan</span></span>
                <i class="evidenzia__maniglia evidenzia__maniglia--a"></i>
                <i class="evidenzia__maniglia evidenzia__maniglia--b"></i>
                <i class="evidenzia__maniglia evidenzia__maniglia--c"></i>
                <i class="evidenzia__maniglia evidenzia__maniglia--d"></i>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>

    <footer class="piede">
      <p>Orrin is free for teams of up to ten.</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/gsap@3.15.0/dist/Flip.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.

87 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 “Feature screen swap” 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 a very light grey background sits the features page of Orrin, a made-up app for product teams: at the top a violet line and the headline “Plan it, track it, ship it. In one calm workspace.”, below, on the left, three blocks of text scrolling by, each with its thin icon, a large title (Plan, Track, Ship), two grey lines and a detail; on the right the app’s white window, with its top bar (the brand, the Q4 launch project, the search and three avatars) and three panels inside: the cycle’s task list, the progress chart and the v2.4 release card. As you scroll the window stays put and changes with the block being read, while that block’s title turns from grey to black and gains weight. Plan: the list is large, with dates and owners, the chart is a narrow column. Track: the panels swap places with FLIP, the chart rises and widens across the top, its line draws itself up to today, the percentage counts up to 62 and in the list the progress bars fill in place of the dates, one after the other. Ship: the list goes back to the left and the finished tasks rise to the top as their ticks draw themselves, the chart shrinks to the bottom right and the release card comes in above it, then the Ship v2.4 button presses itself, fills with violet and becomes Shipped with a tick. On every step a violet selection outline, with handles at its corners and the step’s name on its edge, slides on a spring onto the part the text is about. Scroll back up and everything goes back. On a phone the text sits on top and the window under it, on the same stage that stays put, and the blocks take turns.

How it works

One stage for two sizes

On a computer the stage is a two-column grid: the text blocks scroll on the left and the showcase on the right is sticky inside its cell (align-self: start, 100lvh tall), which is as tall as the text column. On a phone the same stage becomes sticky itself, one 100lvh column with the text on top and the window under it, and the section grows to 300vh to give the three steps their scroll.

A window drawn large

The window is drawn at 520 by 376 and scaled to fit the showcase: the scale is recomputed on every resize from the room that is left. The selection outline is measured with offsetLeft and offsetTop, in window pixels: neither the scale nor FLIP’s transforms touch them.

The panels’ FLIP

A ScrollTrigger on the section picks the step from its progress. On every change Flip.getState records the three panels and the rows, the script switches data-passo on the body (the CSS grid has three layouts) and reorders the rows, then Flip.from carries them from the old place to the new one animating width and height, with nested and absolute: the content reflows as it moves.

The outline that slides

The selection outline keeps its x, y, width and height in an object that GSAP takes to the new panel’s rectangle with back.out, a moment after the FLIP; the name on its edge rolls inside a one-line window and the corner handles swell when it lands.

The parts that move on their own

The list’s dates, bars and statuses are three layers in the same cell and switch on with the step. In Track the bars fill with a staggered scaleX, the chart line is revealed by a widening clipPath (the stroke has vector-effect: non-scaling-stroke and stays thin when the panel stretches) and the percentage counts. In Ship the ticks draw with pathLength 1 and the button presses itself with a small timeline.

Values to change

NameFileDefaultWhat it changes
MORPHscript.js0.8How long the panels take to rearrange (FLIP), in seconds.
SPRINGscript.js1.3How far the selection outline overshoots its place before it stops (0 = none).
STAGGERscript.js0.06The delay between one row and the next as the bars fill and the ticks draw, in seconds.
PROGRESSscript.js62The share of the cycle that is done, written over the chart (the line rises with it).
AUTO_SHIPscript.jstrueOnce Ship is reached the button presses itself; off, it waits for a click.
SHIP_DELAYscript.js0.9How long the button waits before pressing itself, in seconds.
--accentostyle.css#6a4cffThe colour of the selection outline, the bars, the chart line, the ticks and the pressed button.

Try them in the Playground

When to use it

For the features page or the product section of the landing page of a SaaS, a team tool or an app with a dashboard: instead of three still screenshots, one window that rearranges itself as the text tells the story, with the selection outline always showing where to look.

On phones

The text goes on top and the window under it, on the same stage that stays put as tall as the screen: the three blocks take turns rising in, and the whole window scales down to fit the box, with the same panels, the same FLIP and the same outline.

With reduced motion

No movement: on every step the window changes layout with a fade, the outline appears already in place, the bars and the line are already full, the button is already Shipped and the text blocks take turns only through colour and fades.

Pitfalls

  • A sticky showcase in a grid cell needs align-self: start: stretched to the row’s height it has no room to stay put. On a phone the same align-self left it as narrow as the window, and the scale, measured on it, dropped to its minimum: there it needs align-self: stretch.
  • The selection outline is measured with offsetLeft and offsetTop right after data-passo changes and before Flip.from: afterwards the panels are already pushed back by FLIP’s transforms and the rectangle would be the old one.
  • The incoming release card passed over the outgoing chart, and the 62% showed through the button: its opacity is not given to Flip but to a separate tween that waits for half the FLIP.
  • With tabular figures Mona Sans draws a slashed zero: the percentages use the normal figures with a minimum width.
  • A curve made of Béziers with horizontal tangents turned into a staircase when the chart panel narrowed and stretched: the line is a Catmull-Rom converted to Bézier.
  • Never once: true on a timeline with ScrollTrigger: here the ScrollTrigger only picks the step and the animations run on their own.

Libraries

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

Compressed with gzip, the three demo files weigh 11 KB; the libraries: GSAP + ScrollTrigger + Flip 55 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