Skip to content
animorio
IT
Back to the library

Flip-book lookbook

Scroll, ImagesGSAP, CSS onlyAdvancedCompressed weight: Demo 11 KBGSAP + ScrollTrigger 45 KBLenis 5.3 KBFreeDownload the zip

Scroll inside the preview

The Autumn lookbook of Atelier Oska, a small made-up house of ceramics and furniture, lying open on a still stage: as you scroll the right-hand page lifts, turns on the spine in perspective and lands on the left with a small bounce, while the shadow of the fold runs across the paper and the page catches the light. Each spread is a real photo (CC0) on the left and the piece on the right, with its name, material, size and price; underneath, the index of the sections follows on a spring.

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>
<!--
  "Flip-book lookbook" 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 collection lookbook, its pages turning as you scroll</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/fraunces@5.3.0/full.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- the Autumn lookbook of Atelier Oska, a made-up house of ceramics and furniture. The stage stays still while you
       scroll and the book lies open in the middle: every stretch of scroll lifts the right-hand page, turns it over on
       the spine and lays it down on the left, with the shadow of the fold running across the paper. Each spread is a
       real photo on the left and the piece on the right: its name, its material, its size and its price. Under the
       book, the index of the sections follows on a spring. -->
  <section class="lookbook" data-lookbook>
    <div class="palco">
      <header class="testata" data-testata>
        <p class="marchio">
          <svg class="marchio__segno" viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="8.5" /><path d="M7.5 15.5c2.6-1.4 6.4-1.4 9 0" /></svg>
          Atelier Oska
        </p>
        <p class="stagione"><span>Autumn 2026</span> <em>Lookbook</em></p>
      </header>

      <div class="tavolo">
        <div class="scena" data-scena>
          <div class="libro" data-libro>
            <i class="pila pila--s" data-pila="s" aria-hidden="true"></i>
            <i class="pila pila--d" data-pila="d" aria-hidden="true"></i>
            <i class="nastro" data-nastro aria-hidden="true"><i></i></i>
          </div>
          <i class="appoggio" aria-hidden="true"></i>
        </div>
      </div>

      <nav class="indice" data-indice aria-label="Sections of the lookbook">
        <i class="indice__molla" data-molla aria-hidden="true"></i>
        <button type="button" data-voce>Ceramics</button>
        <button type="button" data-voce>Seating</button>
        <button type="button" data-voce>Tables</button>
        <button type="button" data-voce>Textiles</button>
      </nav>
      <p class="suggerimento" data-suggerimento>
        Scroll to turn the page
        <svg viewBox="0 0 12 16" aria-hidden="true"><path d="M6 1v13M1.5 9.5 6 14l4.5-4.5" /></svg>
      </p>
    </div>

    <!-- the spreads, in order: the script lays them in the book (left page on the back of the leaf before) -->
    <div class="doppie" data-doppie>
      <article class="doppia" data-doppia>
        <div class="faccia faccia--s" data-sinistra>
          <figure class="foto"><img src="ceramiche.webp" alt="Shelves of hand-thrown bowls, cups and vases in white and terracotta" width="960" height="640" decoding="async"></figure>
          <p class="piede"><span>Page</span> Ceramics</p>
        </div>
        <div class="faccia faccia--d" data-destra>
          <p class="sezione" data-riga>Ceramics</p>
          <h2 class="pezzo" data-riga>Tide bowls</h2>
          <p class="frase" data-riga>Thrown by hand in small batches, glazed chalk white.</p>
          <dl class="dati" data-riga>
            <div><dt>Material</dt><dd>Stoneware, matte glaze</dd></div>
            <div><dt>Size</dt><dd>14 cm across</dd></div>
            <div><dt>Price</dt><dd>€48 each</dd></div>
          </dl>
          <a class="vedi" href="#" data-riga><span>View the piece</span><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h10M9 4l4 4-4 4" /></svg></a>
          <p class="piede piede--d"><span>Page</span> Ceramics</p>
        </div>
      </article>

      <article class="doppia" data-doppia>
        <div class="faccia faccia--s" data-sinistra>
          <figure class="foto"><img src="sedia.webp" alt="A wooden chair beside a round wooden table" width="800" height="1208" decoding="async"></figure>
          <p class="piede"><span>Page</span> Seating</p>
        </div>
        <div class="faccia faccia--d" data-destra>
          <p class="sezione" data-riga>Seating</p>
          <h2 class="pezzo" data-riga>Lune chair</h2>
          <p class="frase" data-riga>Steam-bent oak, with a seat shaped for long dinners.</p>
          <dl class="dati" data-riga>
            <div><dt>Material</dt><dd>Solid oak, oiled</dd></div>
            <div><dt>Size</dt><dd>78 cm tall</dd></div>
            <div><dt>Price</dt><dd>€620</dd></div>
          </dl>
          <a class="vedi" href="#" data-riga><span>View the piece</span><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h10M9 4l4 4-4 4" /></svg></a>
          <p class="piede piede--d"><span>Page</span> Seating</p>
        </div>
      </article>

      <article class="doppia" data-doppia>
        <div class="faccia faccia--s" data-sinistra>
          <figure class="foto"><img src="tavolo.webp" alt="A wooden dining table with a linen runner in the morning light" width="800" height="1182" decoding="async"></figure>
          <p class="piede"><span>Page</span> Tables</p>
        </div>
        <div class="faccia faccia--d" data-destra>
          <p class="sezione" data-riga>Tables</p>
          <h2 class="pezzo" data-riga>Morning table</h2>
          <p class="frase" data-riga>Long enough for eight, quiet enough for one.</p>
          <dl class="dati" data-riga>
            <div><dt>Material</dt><dd>Ash, soap finish</dd></div>
            <div><dt>Size</dt><dd>180 by 90 cm</dd></div>
            <div><dt>Price</dt><dd>€1,480</dd></div>
          </dl>
          <a class="vedi" href="#" data-riga><span>View the piece</span><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h10M9 4l4 4-4 4" /></svg></a>
          <p class="piede piede--d"><span>Page</span> Tables</p>
        </div>
      </article>

      <article class="doppia" data-doppia>
        <div class="faccia faccia--s" data-sinistra>
          <figure class="foto"><img src="tessuto.webp" alt="Washed linen throws hanging in natural tones" width="1024" height="576" decoding="async"></figure>
          <p class="piede"><span>Page</span> Textiles</p>
        </div>
        <div class="faccia faccia--d" data-destra>
          <p class="sezione" data-riga>Textiles</p>
          <h2 class="pezzo" data-riga>Field throw</h2>
          <p class="frase" data-riga>Washed linen that grows softer every year.</p>
          <dl class="dati" data-riga>
            <div><dt>Material</dt><dd>Washed linen</dd></div>
            <div><dt>Size</dt><dd>130 by 180 cm</dd></div>
            <div><dt>Price</dt><dd>€140</dd></div>
          </dl>
          <a class="vedi" href="#" data-riga><span>View the piece</span><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h10M9 4l4 4-4 4" /></svg></a>
          <p class="piede piede--d"><span>Page</span> Textiles</p>
        </div>
      </article>
    </div>
  </section>

  <section class="fine">
    <p class="fine__piccolo">Atelier Oska, Autumn 2026</p>
    <h2 class="fine__titolo">The whole collection <em>is in the shop.</em></h2>
    <a class="pulsante" href="#"><span>Shop the collection</span><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h10M9 4l4 4-4 4" /></svg></a>
  </section>

  <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.

85 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 “Flip-book lookbook” 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 still and in the middle, on a sand-coloured table, lies the open “Autumn 2026” lookbook of Atelier Oska, a small made-up house of ceramics and furniture; the brand at the top, at the bottom the index of the four sections (Ceramics, Seating, Tables, Textiles) and the words “Scroll to turn the page”. On arrival the book rises from the table, the words of the first page rise one after the other and the corner of the right-hand page lifts a hair, as if tried by a thumb, and falls back. As you scroll, the right-hand page lifts slowly, turns on the spine in perspective and falls to the left more quickly, where it touches the paper and bounces a little before it settles. As it turns it darkens towards the spine and a band of light crosses it; on the page below runs the shadow of its edge, widening and fading; the back arrives in shade and clears as it lands. Each spread has a real photo printed on the paper on the left, settling from a slight zoom, and the piece on the right: the section in terracotta, the name in a serif, a sentence, material, size and price on thin rules, “View the piece” with its arrow, and at the foot “Page” with the name of the section. The words rise one by one as the turning page uncovers them. Under the book the page edges grow on the left and thin on the right as you leaf through, and the ribbon bookmark hanging from the spine swings with the speed of the pages. The photos are real: shelves of white and terracotta bowls, cups and vases, a wooden chair beside a round table, a wooden dining table with a linen runner in the morning light, washed linen throws hanging in natural tones. In the index a light pill follows the book on a spring of its own, with a small overshoot; tapping a section turns the book to it. At the end “The whole collection is in the shop.” and the “Shop the collection” button. Everything follows the scroll, backwards too.

How it works

The book built from the spreads

In the HTML the spreads are written in order, each with its left and right page. The script lays them in the book: the first left page and the last right page stay flat, every other page goes on a leaf, the right page of a spread on the front and the left page of the next spread on the back (backface-visibility hidden, the back turned by 180 degrees). The book holds the perspective, each leaf is transform-style preserve-3d and turns around its left edge, the spine.

The scroll sets the goal, a spring turns the page

A GSAP timeline with ScrollTrigger (scrub SCRUB) moves a single number, T, from 0 to the number of spreads minus one, with a pause after every page; Lenis smooths the scroll. For each leaf the goal is its share of T passed through the TURN curve, and a spring (STIFF, DAMP) chases it every frame: when it goes past the plane of the paper it is sent back with BOUNCE, so the page bounces as it lands.

The light and the shadow of the fold

Every page has two veils written by the script: a shadow and a soft-light sheen. The turning leaf darkens the page below with a band that follows its edge (at the cosine of the angle) and widens with the sine, while its front darkens towards the spine and a band of light crosses it (SHEEN); the back arrives in shade and clears as it lands. The leaf's z-index changes halfway, when it crosses to the other side.

The details that move on their own

The words of the right page rise one by one as the leaf above uncovers them, the photo on the left settles from an 8% zoom, the page edges under the book grow on the left and thin on the right with the turned pages, and the ribbon bookmark swings on a spring pushed by the speed of the leaves.

The index on a spring

Under the book the index pill has its own spring for position and width, softer than the pages', so it arrives a moment later and slightly overshoots the item before it stops. A tap on a section works out where that spread rests on the timeline and takes the scroll there with Lenis.

Values to change

NameFileDefaultWhat it changes
TURNscript.js'power1.in'The curve of the turning page: slow to lift, quicker to fall.
STIFFscript.js150How tightly the pages follow the scroll (spring stiffness).
DAMPscript.js17How soon a page stops swinging (damping).
BOUNCEscript.js0.3How much the page bounces when it lands on the other side.
SHADOWscript.js0.34How dark the shadow of the turning page is on the paper below.
SHEENscript.js0.55How much light the paper catches as it rises.
SCRUBscript.js0.6How many seconds the book takes to catch up with the scroll.
SMOOTHscript.js1.1Lenis smooth scrolling, in seconds (0 = off).

Try them in the Playground

When to use it

For the seasonal lookbook or catalogue of a furniture, ceramics, fashion or homeware brand, for a collection page in an online shop, or for the portfolio of a studio that wants its work leafed through like a printed book. Spreads are added or removed in the HTML (the script builds the book from them), the photos are the webp files in the folder, the colours are in :root.

On phones

The same turning pages at adapted sizes: the book is measured on width and height, the type on the pages follows its width (cqw units), and on a small book the sentence and the link step aside so the name, material, size and price stay readable.

With reduced motion

The pages do not turn: at each section the new spread fades in where the old one was, with the words already in place; no bounces, no swinging ribbon, no smooth scrolling.

Pitfalls

  • An opacity or a filter on the leaf would flatten it and the back would no longer show: fades go on the single pages, never on the leaf with preserve-3d.
  • Perspective only applies to direct children: the leaves sit directly in the book, with no wrapper in between.
  • A spring that goes past 180 degrees would slide the page under the left one: the value past the plane is mirrored and the speed reversed, and that is the bounce.
  • Turned leaves must sit on top on the left and leaves still to turn on top on the right: the z-index changes halfway, when the leaf stands upright and the swap cannot be seen.
  • With cqw sizes the container is the book (container-type inline-size): the pages the script moves into it take its sizes, on resize too.

Libraries

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

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

Testing

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