
The liquid grid
Hover, Transitions
NewLifetime
A ticket-shaped button that grows into the menu panel, with news clippings arriving one at a time. On closing, the clippings fall like dropped sheets of paper.
A folder that runs on its own: index.html, style.css, script.js and the libraries from a CDN.
The code for this animation is part of lifetime access.
The preview stays open: watch it, slow it down, try it on your phone.
Lifetime accessThe button and the panel are the same element: a 44-pixel nav that GSAP takes to a third of the screen (420 at most) and to full height, with expo.inOut. The content already has the size of the open panel, so the growing ticket uncovers it instead of reflowing it every frame.
The shape is a clip-path polygon with five points per corner on a 9-pixel quarter circle centred on the corner, written with calc(100% − …): the same rule works for the button, the panel, the clippings and the coloured tiles, at any size.
The items drop from −2rem with a 0.05 stagger; the rules start from scaleX 0 with the origin on the left; the clippings arrive from 8rem to the right and −2rem above, with a random rotation between −7° and 7°, in power3.out; the last button arrives with elastic.out(1.2, 0.55).
Each clipping gets a random delay, the same for two tweens: one takes it past the bottom of the page with power2.in, faster and faster, and fades it out; the other, with sine.inOut, moves it sideways and turns it up to 58° around a random transform-origin, plus a tilt in depth of up to 40°. Two different curves on the same sheet make a swaying path.
| Name | File | Default | What it changes |
|---|---|---|---|
LATO | script.js | 44 | The closed ticket, in pixels. |
LARGO | script.js | 420 | The maximum width of the open panel. |
CADUTA | script.js | 0.8 | The seconds of the clippings’ fall. |
STORTO | script.js | 58 | How far a clipping may turn while falling, in degrees. |
--tacca | style.css | 9px | The ticket shape: for a different bite, redo the points with another radius. |
For the menu of a portfolio or a magazine, when you want to show the latest news or recent work beside the items.
The panel takes the whole screen and the clippings, only the first two, sit inside the panel under the items, on a slightly darker paper.
The panel appears already full size and everything comes and goes with a two-tenths fade: no growth, no askew sheets, no fall.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Weight: 21 KB of our own files.
Tested on 27 September 2026
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.
With your account’s email and password.
You’re signed in as .
Your plan is free. When lifetime access arrives, it will switch on for this same account.