Skip to content
animorio
IT
Back to the library

Lowered blind transition

Transitions, TextGSAP, CSS onlyMediumCompressed weight: Demo 6.0 KBGSAP 28 KBFreeDownload the zip

A minimal page change with a single gesture: the vermilion rule under the title unhooks, stretches to the edges, rises to the top and comes down bringing the next page with it, like the bar of a roller blind. At the bottom it lands, gives a few pixels and settles; the letters of the new title gain weight one at a time and the rule goes back under them.

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>
<!--
  "Lowered blind transition" 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 rule that lowers the page like a blind</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/roboto-flex@5.3.0/wdth.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <main class="scena" data-scene>
    <!-- the pages: the script fills them; the one on show is .su, the one coming is clipped from below -->
    <section class="pagina" data-page></section>
    <section class="pagina" data-page></section>
    <!-- the thin vermilion rule: it sits under the title, then lowers the next page like a blind -->
    <div class="riga" data-rule><i></i></div>
  </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.

14 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 “Lowered blind transition” 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 site of a made-up small journal, Fieldbook, in three pages that alternate light and dark: the name at the top, a big title in the middle (Low tide, Still water, First frost) with a rule under it, one line under the title, Previous and Next piece at the bottom. On load the vermilion rule draws out from the middle and the letters of the title gain weight from hairline thin. A click on Next piece unhooks the rule from the title, lifting it by a hair, while the letters it held grow lighter; it stretches to both edges and rises to the top. Then it comes down the whole window, a little thicker while it runs, and above it arrives the new page, cut exactly on the rule, like a blind pulled down. At the bottom it lands, gives a few pixels, letting a sliver of the previous page show, and settles on a spring. The letters of the new title, still hairline thin, gain their weight one after another with a small hop, the line under it rises, and the rule climbs back and shortens until it sits under the title again, with a last pixel of give. Previous does the same gesture the other way: the rule goes to the bottom and rises pulling the page up, uncovering the one before. On its own the journal goes forward page by page to the last one, then the blind goes up once straight back to the first; a click stops it for a few seconds.

How it works

Two pages and a rule

There are only two full-window sections: the one on show and a spare, which the script fills with the incoming page. The rule is a div for GSAP holding an element 2 pixels tall and 100 wide, stretched with scaleX to the width it needs: one element for GSAP, the child for the CSS.

Numbers and a single draw

The phases are numbers in an object: k takes the rule from the title to the edge, p runs the blind, q brings it back under the new title, give is the settle and lift the pixel of unhooking. A function tied to the GSAP ticker measures the title and the window every frame and writes the rule position and the clip-path of the page: if the window changes halfway, everything stays in place.

The blind

Going forward the new page sits on top and is cut with clip-path: inset(0 0 Xpx 0), where X is the room between the rule and the bottom; going back the page on show sits on top and is cut while the rule rises, uncovering the one below. The drop takes DROP seconds with power3.inOut; meanwhile the rule thickens and thins again.

Landing and weight

At the bottom the rule gives SETTLE pixels in 0.14 seconds and comes back with elastic.out(1, 0.45). The letters of the new title start at THIN and width 70 and go to WEIGHT and 100 with back.out(2.2), one every 0.05 seconds, with a 2-pixel hop that settles on an elastic.

Values to change

NameFileDefaultWhat it changes
BRANDscript.jsFieldbookThe name at the top left.
TITLESscript.jsLow tide | Still water | First frostThe titles of the pages, split by |.
WEIGHTscript.js640How heavy the titles are, from 300 to 900.
THINscript.js160How thin a title starts before it gains weight.
DROPscript.js0.95The seconds the blind takes to come down.
SETTLEscript.js6How many pixels the blind gives when it lands.
SPEEDscript.js12 is twice as fast, 0.5 half as fast.
RESTscript.js1.6The seconds a page stays before the next one comes by itself.
AUTOscript.jstrueTurn the pages by themselves until someone clicks.

Try them in the Playground

When to use it

For the page changes of a magazine, a blog or a studio portfolio, to move from one article to the next, for any site with light and dark pages taking turns and a single accent colour.

On phones

The same gesture with adapted sizes: the title is sized on the height too, the rule is measured again every frame and Previous and Next piece stay at the bottom.

With reduced motion

No running rule and no blind: the new page fades in and the rule is already under the title.

Pitfalls

  • The rule and the page cut must come from the same number in the same frame: with two separate tweens the edge of the page and the rule drift a pixel apart and the gap shows.
  • Going back the page to cut is the one on show, not the incoming one: the previous page sits below, whole, and is uncovered as the blind rises.
  • The letter weight goes through font-variation-settings written by hand: GSAP cannot tween a string with two axes.

Libraries

GSAP 3.15.0, Roboto Flex (font variabile) 5.3.0.

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

Testing

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