Skip to content
animorio
IT
Back to the library

List to detail

TransitionsGSAP, CSS onlyMediumCompressed weight: Demo 8.2 KBGSAP 28 KBFreeDownload the zip

An app’s transition between the list and the detail page, in the style of product components: click a project and its thumbnail flies out and grows into the cover, the name slides and grows into the headline, the status becomes a pill, the other rows move away and the rest of the page comes in staggered. Back makes the same trip home, to the right row.

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>
<!--
  "List to detail" 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>Brightloom projects</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 projects list of an invented studio tool: a row opens into its detail page, the thumbnail becomes the
       cover, the name the title, the status a pill; Back makes the same trip home -->
  <main class="palco">
    <section class="finestra" data-finestra aria-label="Brightloom projects">

      <div class="vista vista--lista" data-lista>
        <header class="testa">
          <div>
            <p class="occhiello">Brightloom</p>
            <h1 class="titolo-lista">Projects</h1>
          </div>
          <p class="conta"><span class="num">4</span> active</p>
        </header>
        <label class="cerca" data-cerca>
          <svg viewBox="0 0 16 16" aria-hidden="true"><circle cx="7" cy="7" r="4.6" /><path d="m10.6 10.6 3 3" /></svg>
          <input type="text" placeholder="Search projects" aria-label="Search projects" tabindex="-1" readonly>
          <span class="tasto">/</span>
        </label>
        <ul class="righe" data-righe></ul>
        <p class="piede-lista" data-piede>Synced <span class="num">2 min</span> ago</p>
      </div>

      <div class="vista vista--dettaglio" data-dettaglio aria-hidden="true">
        <div class="copertina" data-copertina></div>
        <div class="dettaglio-corpo">
          <button class="indietro" type="button" data-indietro aria-label="Back to projects">
            <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M10 3.5 5.5 8l4.5 4.5" /></svg>
            <span>Back</span>
          </button>
          <div class="riga-titolo">
            <h2 class="titolo-dettaglio" data-titolo></h2>
            <span class="pillola" data-pillola></span>
          </div>
          <p class="testo" data-entra data-testo></p>
          <dl class="dati" data-entra>
            <div><dt>Owner</dt><dd data-owner></dd></div>
            <div><dt>Due</dt><dd class="num" data-due></dd></div>
            <div><dt>Tasks</dt><dd class="num" data-tasks></dd></div>
          </dl>
          <div class="avanzamento" data-entra>
            <div class="avanzamento-testa"><span>Progress</span><span class="num" data-perc></span></div>
            <div class="barra"><div class="barra-piena" data-barra></div></div>
          </div>
          <div class="team" data-entra>
            <div class="volti" data-volti></div>
            <span class="team-testo" data-team></span>
          </div>
        </div>
      </div>

      <div class="volo" data-volo aria-hidden="true"></div>
    </section>

    <svg class="puntatore" data-puntatore viewBox="0 0 24 24" aria-hidden="true">
      <path d="M5 3.5v15.2l4.1-3.9 2.7 6.2 2.6-1.1-2.7-6.1 5.7-.3z" />
    </svg>
  </main>

  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.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.

31 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 “List to detail” 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 white background sits the window of a studio app, Brightloom: at the top «Projects» and «4 active», below four projects in rows, each with a coloured thumbnail (a gradient with a thin circle and arc), the name, the client with the date and the status in a soft pill: In review, In progress, Shipped, Draft. On hover the row lightens. Click it and the thumbnail lifts off and flies to the top, growing into the cover of the detail page while its corners straighten; the name slides and grows into the headline, the status moves beside it and becomes a larger pill. Meanwhile the other rows move away up and down and fade, the nearest first, and the header rises and disappears. Once there, the cover drops a pixel and comes back; the frosted Back button comes in with a small bounce, then the project’s sentence, the data (Owner, Due, Tasks) and the progress bar filling to its percentage come in one after the other. Back makes the trip the other way: the cover becomes the thumbnail again in the right row, the headline becomes the name, and the other rows come back. A fake pointer opens the second row, goes back, opens the fourth and goes back.

How it works

Measure before and after

On click we measure where the thumbnail, name and status sit in the row, then show the detail and measure where the cover, headline and pill sit. That is FLIP: First, Last, Invert, Play. All measures are taken relative to the window, with getBoundingClientRect.

A piece that flies

The thumbnail is not scaled: a separate div with the same drawing starts at the thumbnail’s position and size, and GSAP animates its x, y, width, height and radius to the cover’s. That way the gradient and the circle do not stretch. After the flight, the real cover takes its place.

The headline that grows

The real headline is already in place in the detail: it starts moved to where the name was and shrunk (name height over headline height), with its origin on the left, and returns to zero on the same expo.out curve. The pill does the same.

The rest moves away

The other rows go up or down by FUGA pixels depending on whether they sit above or below the open one, with a delay that grows with distance; the header rises. The detail content comes in staggered by SFALSA seconds, the bar fills with scaleX.

The way back

Back measures the row again minus the offset GSAP gave it (gsap.getProperty), so the flight home lands exactly where the thumbnail sits at rest, even if the window changed meanwhile.

Values to change

NameFileDefaultWhat it changes
VOLOscript.js0.72How long the thumbnail’s trip to the cover lasts, in seconds.
RITORNOscript.js0.6How long the trip back lasts, in seconds.
FUGAscript.js26How many pixels the other rows move away when one opens.
SFALSAscript.js0.06The delay between one piece and the next of the incoming detail, in seconds.
ANGOLOscript.js11The corner radius of the thumbnail, in pixels.
SOSTAscript.js2.6How long the detail stays open in the automatic tour, in seconds.

Try them in the Playground

When to use it

For an app or a dashboard with lists that open: projects, orders, customers, files, blog posts or shop products. It keeps the eye on the clicked piece, so the viewer never loses the thread between the list and the page.

On phones

The same transition, with the window fitting the box: rows and cover measured on height too, the project sentence cut to two lines when space is short. A tap opens the row like a click.

With reduced motion

No flight and no movement: the list fades out and the detail fades in already in place, and Back does the same the other way.

Pitfalls

  • Scaling the thumbnail with a transform stretches the gradient and the circle: better a separate piece animating width and height, and since it is just one it costs little.
  • To measure the row on the way back you must remove the vertical offset GSAP gave it, or the flight lands FUGA pixels too high or too low.
  • The headline must be measured with transforms cleared (clearProps) before computing the inversion, or a second click starts from the first one’s values.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 8.2 KB; the libraries: GSAP 28 KB.

Testing

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