Skip to content
animorio
IT
Back to the library

Sheet over pipeline

Transitions, HoverGSAPMediumCompressed weight: Demo 13 KBGSAP + CustomEase 31 KBFreeDownload the zip

Two pages of Nerith Bio, a made-up biotech company: the pipeline list with four medicines and the page of one product. A click on a row and the new page rises from below like a sheet, with a soft shadow on its edge, a line of light and corners that straighten as it lands, while the old one slides up a quarter and darkens under a veil; all in 1.2 s on the site’s «parallax» curve, then the title rises line by line. Going back plays the gesture the other way, and the «Get in touch» modal rises the same way, its right column landing 0.25 s later.

Rebuilt from scratch studying polpharmabiologics.com by Widelab: 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>
<!--
  "Sheet over pipeline" 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 page that rises like a sheet over the pipeline</title>
  <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/instrument-sans@5.3.0/wdth.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <main class="stage" data-stage>
    <!-- two pages of a made-up biotech company, Nerith Bio: the pipeline list and the page of one product.
         A click on a product: the new page rises from below like a sheet while the old one slides up a quarter
         and darkens under a veil; the back link plays the same gesture the other way. The Get in touch modal
         rises with the same gesture, its right column a little later -->
    <header class="nav" data-nav>
      <span class="brand">
        <svg class="brand__mark" viewBox="0 0 22 22" aria-hidden="true">
          <path class="brand__outer" d="M11 1.6 20.4 11 11 20.4 1.6 11Z"/>
          <path class="brand__inner" d="M11 7.2 14.8 11 11 14.8 7.2 11Z"/>
        </svg>
        <span class="brand__name">Nerith Bio</span>
      </span>
      <nav class="nav__links" aria-label="Main">
        <span class="nav__link">Science</span>
        <span class="nav__link is-current" aria-current="page">Pipeline</span>
        <span class="nav__link">Partners</span>
      </nav>
      <button class="pill" type="button" data-open data-hov>
        <span class="pill__bg" aria-hidden="true"></span>
        <span class="pill__label">Get in touch</span>
      </button>
    </header>

    <!-- the pipeline: the old page of the gesture -->
    <section class="page page--list" data-list aria-label="Pipeline">
      <div class="list__head">
        <div>
          <p class="eyebrow" data-list-reveal>Biosimilars pipeline</p>
          <h1 class="title">
            <span class="line"><span class="line__in" data-list-line>Built to the molecule,</span></span>
            <span class="line"><span class="line__in" data-list-line>proven in the clinic.</span></span>
          </h1>
        </div>
        <p class="list__note" data-list-reveal>Four programmes in development, each matched to its reference medicine down to the last glycan.</p>
      </div>
      <div class="rows" data-rows role="list"></div>
    </section>

    <!-- the veil between the two pages -->
    <div class="veil" data-veil aria-hidden="true"></div>

    <!-- the product: the sheet -->
    <section class="page page--product sheet" data-product aria-label="Product" aria-hidden="true">
      <span class="product__light" data-product-light aria-hidden="true"></span>
      <span class="grain" aria-hidden="true"></span>
      <span class="product__mark" aria-hidden="true">
        <svg class="mark" data-p-mark viewBox="0 0 200 200">
          <path class="mark__a" d="M100 4 196 100 100 196 4 100Z"/>
          <path class="mark__b" d="M100 40 160 100 100 160 40 100Z"/>
          <path class="mark__c" d="M100 78 122 100 100 122 78 100Z"/>
          <path class="mark__d" d="M100 4V196M4 100H196"/>
        </svg>
      </span>
      <div class="product__top">
        <button class="back" type="button" data-back data-hov>
          <span class="back__ic" aria-hidden="true">
            <svg viewBox="0 0 16 16"><path d="M13 8H3.4M7.6 3.6 3.2 8l4.4 4.4"/></svg>
          </span>
          <span class="back__label">Pipeline</span>
        </button>
      </div>
      <div class="product__body">
        <p class="eyebrow eyebrow--light"><span class="line"><span class="line__in" data-p-line data-p-code></span></span></p>
        <h2 class="product__name"><span class="line"><span class="line__in" data-p-line data-p-name></span></span></h2>
        <p class="product__desc">
          <span class="line"><span class="line__in" data-p-line data-p-desc1></span></span>
          <span class="line"><span class="line__in" data-p-line data-p-desc2></span></span>
        </p>
      </div>
      <div class="product__foot">
        <div class="stats">
          <div class="stat" data-p-stat><span class="stat__v" data-p-stage></span><span class="stat__k">Stage</span></div>
          <div class="stat" data-p-stat><span class="stat__v" data-p-area></span><span class="stat__k">Therapy area</span></div>
          <div class="stat" data-p-stat><span class="stat__v" data-p-filing></span><span class="stat__k">Planned filing</span></div>
        </div>
        <div class="track" data-track>
          <div class="track__labels" data-track-labels></div>
          <div class="track__bar"><span class="track__fill" data-track-fill><span class="track__tick"></span></span></div>
        </div>
      </div>
    </section>

    <!-- the Get in touch modal: the same gesture, with a parallax inside the panel -->
    <div class="modal" data-modal aria-hidden="true">
      <div class="modal__veil" data-modal-veil></div>
      <div class="modal__panel sheet" data-panel role="dialog" aria-modal="true" aria-labelledby="modal-title" tabindex="-1">
        <div class="mcard">
          <span class="scene" data-scene aria-hidden="true"><span class="scene__light" data-scene-light></span><span class="scene__light scene__light--two" data-scene-light2></span></span>
          <span class="grain" aria-hidden="true"></span>
          <p class="eyebrow eyebrow--light mcard__eyebrow"><span class="line"><span class="line__in" data-m-line>Partnerships</span></span></p>
          <h2 class="mcard__title" id="modal-title">
            <span class="line"><span class="line__in" data-m-line>Bring us your</span></span>
            <span class="line"><span class="line__in" data-m-line>next molecule.</span></span>
          </h2>
          <p class="mcard__contact"><span class="line"><span class="line__in" data-m-line>partners@nerith.bio</span></span></p>
        </div>
        <form class="mform" data-right>
          <p class="mform__title" data-m-field>Tell us about your programme</p>
          <label class="field" data-m-field><span class="field__k">Name</span><input class="field__in" type="text" autocomplete="off" placeholder="Dr. Ada Lindqvist"><span class="field__line"></span></label>
          <label class="field" data-m-field><span class="field__k">Work email</span><input class="field__in" type="email" autocomplete="off" placeholder="ada@company.com"><span class="field__line"></span></label>
          <label class="field field--msg" data-m-field><span class="field__k">Message</span><textarea class="field__in" rows="2" placeholder="A biosimilar for an anti-TNF reference, phase I ready."></textarea><span class="field__line"></span></label>
          <button class="send" type="submit" data-m-field data-hov>
            <span class="send__label">Send message</span>
            <svg class="send__ic" viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h9.6M8.4 3.6 12.8 8l-4.4 4.4"/></svg>
          </button>
        </form>
        <button class="close" type="button" data-close data-hov aria-label="Close">
          <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M4 4l8 8M12 4l-8 8"/></svg>
        </button>
      </div>
    </div>

    <svg class="cursor" data-cursor viewBox="0 0 24 24" aria-hidden="true"><path d="M5 2.8v16.4l4.2-4 2.8 6.2 2.9-1.3-2.8-6.1h5.9Z"/></svg>
  </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/CustomEase.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.

48 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 “Sheet over pipeline” 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 the light page of Nerith Bio, biotech, there is the menu with the rhombus mark and the coral «Get in touch» pill, the title «Built to the molecule, proven in the clinic.» and the pipeline list: four medicines in clean rows, each with its code, its name, the disease, five dashes that tell its phase and a circle with an arrow. Over a row a white card rises under it with its shadow, the name moves three pixels and the circle fills; pressed, the row gives way by one pixel. On click the product page, petrol green, rises from below like a sheet: a soft shadow above its edge, a one pixel line of light and rounded top corners that straighten only in the last stretch. Meanwhile the list page slides up a quarter and darkens under an almost black veil, and the menu turns light when the sheet passes under it. As soon as the sheet lands the code, the big name and the line rise row by row, then the three facts and the phase track filling up to the coral tick. «Pipeline» at the top plays the gesture the other way: the sheet goes back down, the veil lifts, the list comes down into place and the row we started from lights up for a moment. «Get in touch» opens the modal with the same gesture: the veil, the panel rising, the soft scene on the left coming in as it shrinks and the form column starting lower and landing 0.25 s later. Left alone, a pointer opens a product, comes back, opens the modal and closes it, and starts again.

How it works

Two pages at the same time

Like Barba with sync: true on the site, the two pages live together during the change. They are two sections in position: absolute, one over the other: the list at z-index 1, the veil at 2, the product at 3. The sheet starts at yPercent 100 (one window height lower, like the site’s 100vh) and the old page at 0; yPercent instead of vh updates by itself if the window changes size halfway.

The «parallax» curve

CustomEase.create("parallax", "0.7, 0.05, 0.13, 1"), the site’s curve: it starts slow, speeds up hard in the middle and lands very slowly. In 1.2 s the sheet goes from 100 to 0, the old page from 0 to -25 and the veil from autoAlpha 0 to 0.8, all three on the same curve and from the same instant: the depth between the two sheets shows without a single delay.

The edge of the sheet (ours)

The sheet has three shadows at the top (a one pixel one, a short one and a long soft one), a one pixel line of light in a ::before with a gradient fading at the sides and top corners rounded by 28 px. On every frame the distance from the edge sets the radius: it stays round for most of the ride and straightens in the last 16% (through a square root, so it straightens right at the end); the line of light goes out in the last eight pixels.

The titles after the sheet

Each title line is a window with overflow: hidden with the real line inside, with 0.14 em of room below for the descenders. At 0.72 s, when the sheet has almost landed, the lines rise from yPercent 110 to 0 in 0.8 s, 0.1 s apart, on expo.out: the same numbers as the site’s reveals. Then the three facts rise by 14 px and the phase track fills up to the coral tick.

Going back and the menu (ours)

Going back is the same gesture reversed: the list starts again from -25 under the veil at 0.8, the sheet goes back to 100, the veil to 0, and the title lines leave upwards in 0.5 s on power2.in. Halfway the row we started from takes a pale card that fades away. The menu turns light when the edge of the sheet passes under its middle, like the page themes of the site.

The modal with a parallax inside

The same gesture: the veil to 0.8, the panel from 100vh to 0 in 1.2 s, the right column starting 25vh lower and riding for 1.2 + 0.25 s, so it lands after the panel (the site’s numbers). On closing everything goes down together in 1.2 s, with no lag. The movement lives in two CSS variables (--py and --ry) that GSAP takes from 1 to 0, multiplied by 100vh and 25vh in the CSS. The soft scene on the left comes in from scale 1.1 and opacity 0 in 1 s on the same curve, like the scene in the site’s modal.

Values to change

NameFileDefaultWhat it changes
DURATIONscript.js1.2Seconds of the whole gesture, pages and modal (the site uses 1.2).
PARALLAXscript.js0.7, 0.05, 0.13, 1The site’s «parallax» curve, the four numbers of a cubic-bezier.
OLD_SHIFTscript.js25How far the old page slides up, in percent of the window (the site uses 25).
VEILscript.js0.8How dark the veil over the old page gets (the site uses 0.8).
RIGHT_FROMscript.js25The extra travel of the right column of the modal, in vh (the site uses 25).
RIGHT_LAGscript.js0.25Seconds the right column lands after the panel (the site uses 0.25).
TITLE_TIMEscript.js0.8Seconds each title line takes to rise (the site uses 0.8).
TITLE_STAGGERscript.js0.1Seconds between one title line and the next (the site uses 0.1).
TITLE_ATscript.js0.72How many seconds after the start of the sheet the titles rise.
CORNERscript.js28The radius in pixels of the top corners of the sheet while it travels.
IDLEscript.js1.6Seconds before the pointer starts on its own.
LOOPscript.jstrueLeft alone, it opens a product, comes back, opens the modal and closes it, over and over.

Try them in the Playground

When to use it

For the page changes of a site with a list and its detail pages: the products of a company, the projects of a studio, the rooms of a hotel, the articles of a magazine. The modal with the late column works for any contact or booking form that opens over the page.

On phones

The same gesture with adapted sizes: the rows keep the name, the disease, the phase and the arrow (code and dashes hide), the product name is measured on width and height with min(vw, vh), the modal puts the scene above the form. A finger taps the row and the page rises; the tap does not switch on the hover.

With reduced motion

No rising sheets and no sliding pages: the new page and the modal fade in in 0.45 s, with the titles already in place. No pointer on its own.

Pitfalls

  • The veil and the new page must stay above the old one for the whole gesture, going back too: here the order never changes (list 1, veil 2, product 3) and going back the list starts again from -25 already under the veil at 0.8, or there would be a jump.
  • A 100vh inside a tween turns into pixels only once: if the window changes height halfway the sheet would stop too high or too low. The pages use yPercent, the modal two CSS variables multiplied by 100vh and 25vh in the CSS.
  • The site creates the «parallax» curve inside the page leave, so a modal opened before any page change would not have it: it creates it again on its own. Here it is created once at the start.
  • Two quick clicks would start two transitions together: one gesture at a time (like Barba’s preventRunning) and the modal with a single timeline that opens and closes, so they interrupt each other cleanly.
  • Title lines hidden in a window with overflow: hidden cut the descenders of g and p: the window has 0.14 em of room below and the same negative margin, like the site’s lines.
  • On the site the «Get in touch» buttons are divs with no role, out of reach of the keyboard: here they are buttons, the modal has role="dialog" and aria-modal, takes the focus and closes with Esc; Esc on the product page goes back to the list.

Libraries

GSAP 3.15.0, CustomEase (GSAP) 3.15.0, Newsreader (font variabile) 5.3.0, Instrument Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 13 KB; the libraries: GSAP + CustomEase 31 KB.

Testing

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