Skip to content
animorio
IT
Back to the library

Calendar app headline

Text, HoverGSAP, CSS onlyMediumCompressed weight: Demo 12 KBGSAP 28 KBFreeDownload the zip

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.

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>
<!--
  "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>

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.

66 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 “Calendar app headline” 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 a warm white ground sits the first screen of the landing page of Overlap, a made-up app for booking meetings: at the top the mark with two overlapping circles, Product, Pricing, Changelog and Try it free; below, the pill New, Reads four calendars at once. The large headline, in Mona Sans, says Your team is free and below it Thursday at 3:30 pm, where Thursday and 3:30 pm are two white pills with a small chevron, the second with indigo figures. On the way in the words rise one after another going from thin and wide to full and normal, the pills swell with a small bounce and from below comes the card of the week’s calendar, Monday 16 to Friday 20, with the other meetings in grey stripes and the indigo Design review meeting dropping into place with a sheen running across it. Then a pointer presses Thursday: the pill lights up in indigo, the chevron turns and a glass menu opens with the five days and their dates; the highlight slides down to Tuesday, the click, and Thursday rises and blurs away while Tuesday comes in from below, the pill shrinks to the new word and the letters squeeze for a moment. In the calendar the meeting lifts, tilts, flies to Tuesday and settles with a pixel of bounce; where it was a dashed outline stays and fades, Tue 17 lights up, the four faces hop one after another while Checking 4 shimmers, All 4 free comes back and the dark Invites updated toast drops in with its check drawing itself. The same with the time, then everything goes back to Thursday at 3:30.

How it works

The headline with two axes in variables

Each 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 pill that changes word

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 meeting flying across the grid

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.

Values to change

NameFileDefaultWhat it changes
SPRINGscript.js0.72How the meeting lands: lower bounces more, 1 hardly at all.
FLIGHTscript.js0.8How long the meeting takes to fly to its new place, in seconds.
LIFTscript.js1.06How much the meeting grows while it is lifted (1 for none).
TILTscript.js2.5How many degrees it tilts toward where it is going.
SQUEEZEscript.js82The width axis the word in the pill reaches while it changes (100 for none).
WEIGHTscript.js640The weight of the headline once it has settled.
SPEEDscript.js12 = the walk on its own twice as fast, 0.5 = half.
--accentstyle.css#4b4ae8The indigo of the meeting, the chosen day and the light of the pills.
--pagestyle.css#f4f2eeThe warm white of the page.

Try them in the Playground

When to use it

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.

On phones

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.

With reduced motion

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.

Pitfalls

  • The new word is measured with offsetWidth, not getBoundingClientRect: while the pointer presses, the pill is scaled by GSAP and the measure would come out smaller.
  • The pointer’s walk reads the positions of a menu that opens afresh every time: without repeatRefresh: true on the timeline, from the second round the computed values stayed those of the first.

Libraries

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.

Testing

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