
Speeding marquee
Scroll, Text, Hover
The opening of the landing page of Overlap, a made-up app that reads the team’s calendars and finds the hour when everyone is free. The headline says “Your team is free Thursday at 3:30 pm”, but the day and the time are not words: they are two real pills inside the headline. Press one and a glass menu opens below, the highlight follows the pointer on a spring, and the chosen word rolls into the pill while the pill takes its new width and the letters squeeze for an instant on the width axis. Below, in the calendar of the week, the Design review meeting lifts, tilts toward where it is going and lands on the new day and hour with a pixel of bounce, leaving a dashed outline where it was; the day header lights up, the four faces hop while Overlap checks their calendars, All 4 free comes back and a small toast says the invites are updated.
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>
<!--
"Calendar app headline" 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 calendar app headline whose day and time are menus</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>
<main class="stage" data-stage>
<!-- the opening of the landing page of Overlap, a made-up scheduling app. In the headline the day and the time are
real menus: pick another day or hour and the meeting in the calendar below moves there on a spring -->
<header class="nav">
<span class="brand">
<svg class="brand__mark" viewBox="0 0 24 24" aria-hidden="true">
<circle cx="9" cy="12" r="6.2"/>
<circle cx="15" cy="12" r="6.2"/>
</svg>
<span class="brand__name">Overlap</span>
</span>
<span class="nav__links"><span>Product</span><span>Pricing</span><span>Changelog</span></span>
<span class="nav__cta">Try it free</span>
</header>
<section class="hero">
<p class="eyebrow" data-rise><span class="eyebrow__tag">New</span><span class="eyebrow__text">Reads four calendars at once</span></p>
<h1 class="title" data-title>
<span class="title__line">
<span class="w" data-w>Your</span> <span class="w" data-w>team</span> <span class="w" data-w>is</span> <span class="w" data-w>free</span>
</span>
<span class="title__line">
<span class="w w--pill" data-w><button class="pill" type="button" data-pill="day" aria-haspopup="listbox" aria-expanded="false" aria-label="Day: Thursday"><span class="pill__face"><span class="pill__win" data-win><span class="pill__text" data-text>Thursday</span></span><svg class="pill__chev" viewBox="0 0 16 16" aria-hidden="true"><path d="M4.5 6.5 8 10l3.5-3.5"/></svg></span><span class="pill__measure" data-measure aria-hidden="true"></span></button></span>
<span class="w" data-w>at</span>
<span class="w w--pill" data-w><button class="pill pill--time" type="button" data-pill="time" aria-haspopup="listbox" aria-expanded="false" aria-label="Time: 3:30 pm"><span class="pill__face"><span class="pill__win" data-win><span class="pill__text" data-text>3:30 pm</span></span><svg class="pill__chev" viewBox="0 0 16 16" aria-hidden="true"><path d="M4.5 6.5 8 10l3.5-3.5"/></svg></span><span class="pill__measure" data-measure aria-hidden="true"></span></button></span>
</span>
</h1>
<p class="sub" data-rise>Overlap reads every calendar on the team and holds the hour everyone can make.</p>
<div class="ctas" data-rise>
<span class="btn btn--dark"><span class="btn__words">Hold the slot</span></span>
<span class="btn btn--ghost"><span class="btn__words">See how it works</span></span>
</div>
</section>
<section class="app" data-app aria-label="Calendar preview">
<div class="app__card">
<div class="app__bar">
<span class="app__title">Design review</span>
<span class="app__week">Nov 16 to 20</span>
<span class="app__people" data-people>
<span class="face face--a">AL</span><span class="face face--b">MK</span><span class="face face--c">JS</span><span class="face face--d">RT</span>
</span>
<span class="app__free"><span class="app__free-win"><span class="app__free-text" data-free>All 4 free</span></span></span>
<span class="toast" data-toast>
<svg viewBox="0 0 16 16" aria-hidden="true"><path class="toast__check" data-check pathLength="1" d="M3.5 8.4l2.9 2.9 6-6.4"/></svg>
<span>Invites updated</span>
</span>
</div>
<div class="cal">
<div class="cal__corner"></div>
<div class="cal__heads" data-heads>
<span class="head" data-head><b>Mon</b> 16</span>
<span class="head" data-head><b>Tue</b> 17</span>
<span class="head" data-head><b>Wed</b> 18</span>
<span class="head" data-head><b>Thu</b> 19</span>
<span class="head" data-head><b>Fri</b> 20</span>
</div>
<div class="cal__hours">
<span style="top:0%">9 am</span><span style="top:25%">11 am</span><span style="top:50%">1 pm</span><span style="top:75%">3 pm</span><span style="top:100%">5 pm</span>
</div>
<div class="cal__grid" data-grid>
<span class="rule" style="top:25%"></span><span class="rule" style="top:50%"></span><span class="rule" style="top:75%"></span>
<span class="col" style="left:20%"></span><span class="col" style="left:40%"></span><span class="col" style="left:60%"></span><span class="col" style="left:80%"></span>
<span class="busy" data-busy="0,0,0.75">Standup</span>
<span class="busy" data-busy="1,3.8,0.9">Lunch with Ada</span>
<span class="busy" data-busy="2,0,0.75">Standup</span>
<span class="busy" data-busy="2,3.75,1">Vendor call</span>
<span class="busy" data-busy="3,3.75,0.75">Hiring sync</span>
<span class="busy" data-busy="4,7.4,0.6">Retro</span>
<span class="trail" data-trail></span>
<div class="ev" data-ev>
<div class="ev__face">
<span class="ev__name">Design review</span>
<span class="ev__time" data-evtime>3:30 to 4:15</span>
<span class="ev__faces"><i></i><i></i><i></i><i></i></span>
</div>
</div>
</div>
</div>
</div>
</section>
<div class="menu" data-menu role="listbox" aria-hidden="true">
<p class="menu__label" data-menu-label>Pick a day</p>
<div class="menu__list" data-menu-list>
<span class="menu__hi" data-hi></span>
</div>
</div>
<svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.2 19.2 11l-6.3 1.6-3.3 5.9Z"></path></svg>
<p class="sr" aria-live="polite" data-live></p>
</main>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
<script src="script.js"></script>
</body>
</html>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.
66 values to change
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 “Calendar app headline” from Animorio and fit it into my siteEach word of the headline has font-variation-settings with weight and width taken from two custom properties, --w and --s. GSAP animates them word by word: on the way in from 280 and 124 to full and normal, staggered; when a pill changes word the width drops for a moment and comes back on a spring.
The new word is first measured in a hidden span inside the same pill, which inherits the same axes. The pill’s window starts from its old width and goes to the new one with elastic.out, while the old word rises and blurs and the new one comes in from below with back.out; at the end the width is set free again.
The calendar positions are worked out in pixels from the grid (a column for the day, hours for the height) and measured again with a ResizeObserver. The meeting is an element only for GSAP: it lifts and tilts, flies on a spring, straightens and comes down, and its face, for the CSS, carries the sheen that runs across it.
| Name | File | Default | What it changes |
|---|---|---|---|
SPRING | script.js | 0.72 | How the meeting lands: lower bounces more, 1 hardly at all. |
FLIGHT | script.js | 0.8 | How long the meeting takes to fly to its new place, in seconds. |
LIFT | script.js | 1.06 | How much the meeting grows while it is lifted (1 for none). |
TILT | script.js | 2.5 | How many degrees it tilts toward where it is going. |
SQUEEZE | script.js | 82 | The width axis the word in the pill reaches while it changes (100 for none). |
WEIGHT | script.js | 640 | The weight of the headline once it has settled. |
SPEED | script.js | 1 | 2 = the walk on its own twice as fast, 0.5 = half. |
--accent | style.css | #4b4ae8 | The indigo of the meeting, the chosen day and the light of the pills. |
--page | style.css | #f4f2ee | The warm white of the page. |
For the opening of an app or a service where the user picks something (a day, a time, a plan, a city): the headline itself becomes the first control, and the product preview below shows at once what happens.
The same animation with adapted measures: the headline is sized on the height too, the bar links, the line and the second button hide, the calendar takes the space that is left and the meeting shows only its name.
No motion: the headline and the calendar appear with a fade, and when the day or the time changes the word and the meeting swap with a fade in their new place.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 12 KB; the libraries: GSAP 28 KB.
Tested on 15 November 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.
Support Animorio
Animorio stays free thanks to the people who support it. If you like, buy us a coffee: it helps us make the next animations.
You asked for
We made it for you: it’s in the library, with the preview, the Playground and the code to copy.
An animation you can’t find, or a site to take apart in the journal: tell us which. We pick the next ones from here.
With your account’s email and password.
or with your email
You’re signed in as .
With your account, you can download the zip of every animation and every pack, for free.