Skip to content
animorio
IT
Back to the library

Agenda to appointment

Transitions, HoverGSAP, CSS onlyAdvancedCompressed weight: Demo 10 KBGSAP 28 KBFreeDownload the zip

A premium transition for a calendar app: tapping the meeting card in the day's agenda, the card itself becomes the appointment's page. Its white plate grows to the whole screen, its thin colour bar opens into the violet header with its warm light and grain, and the time, the countdown, the title, the room and the four guests fly to their places and grow (FLIP), on a hand made spring that passes the mark by a pixel. Back makes the whole trip the other way, into the same slot.

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>
<!--
  "Agenda to appointment" 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 agenda to appointment transition</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">
    <span class="aura aura--a" aria-hidden="true"></span>
    <span class="aura aura--b" aria-hidden="true"></span>

    <!-- the day of an invented calendar app, Dayline. Tapping the Product review card, the card itself becomes the
         appointment's page: its white plate grows into the whole screen, its thin colour bar widens into the coloured
         header, and the time, the title, the place and the four guests fly to their places (FLIP). Back makes the
         whole trip the other way, down into the same slot -->
    <div class="app" data-app>
      <section class="list" data-list>
        <header class="list__head" data-back>
          <div>
            <p class="list__day">Wednesday</p>
            <h1 class="list__date">4 November</h1>
          </div>
          <span class="list__count">4 events</span>
        </header>

        <div class="week" data-back aria-hidden="true">
          <span class="week__d"><i>M</i>2</span>
          <span class="week__d"><i>T</i>3</span>
          <span class="week__d is-on"><i>W</i>4</span>
          <span class="week__d"><i>T</i>5</span>
          <span class="week__d"><i>F</i>6</span>
          <span class="week__d"><i>S</i>7</span>
          <span class="week__d"><i>S</i>8</span>
        </div>

        <div class="events">
          <button class="ev ev--small" type="button" data-back data-small>
            <span class="ev__bar ev__bar--mint" aria-hidden="true"></span>
            <span class="ev__time">09:30</span>
            <span class="ev__title">Standup</span>
            <span class="ev__sub">Core team, 15 min</span>
          </button>

          <div class="now" data-back aria-hidden="true"><span class="now__t">10:35</span><span class="now__line"></span></div>

          <button class="ev ev--main" type="button" data-card aria-label="Product review, 11:00 to 11:45. Open">
            <span class="ev__shine" aria-hidden="true"></span>
            <span class="ev__bar" data-bar aria-hidden="true"></span>
            <span class="ev__row">
              <span class="ev__time" data-k="time">11:00 to 11:45</span>
              <span class="ev__chip" data-k="chip">in 25 min</span>
            </span>
            <span class="ev__title ev__title--main" data-k="title">Product review</span>
            <span class="ev__place" data-k="place">
              <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M8 14.2s4.6-4.1 4.6-7.6A4.6 4.6 0 0 0 3.4 6.6c0 3.5 4.6 7.6 4.6 7.6z"/><circle cx="8" cy="6.6" r="1.6"/></svg>
              <span>Loft room, floor 3</span>
            </span>
            <span class="ev__avs">
              <span class="av av--a" data-k="av0">ID</span>
              <span class="av av--b" data-k="av1">TM</span>
              <span class="av av--c" data-k="av2">KA</span>
              <span class="av av--d" data-k="av3">RL</span>
            </span>
          </button>

          <button class="ev ev--small" type="button" data-back data-small>
            <span class="ev__bar ev__bar--peach" aria-hidden="true"></span>
            <span class="ev__time">15:30</span>
            <span class="ev__title">1:1 with Ines</span>
            <span class="ev__sub">Video call, 30 min</span>
          </button>

          <button class="ev ev--small ev--late" type="button" data-back data-small>
            <span class="ev__bar ev__bar--grey" aria-hidden="true"></span>
            <span class="ev__time">17:00</span>
            <span class="ev__title">Design critique</span>
            <span class="ev__sub">Studio, 45 min</span>
          </button>
        </div>
      </section>

      <span class="plate" data-plate aria-hidden="true"></span>
      <span class="hero-bg" data-hero aria-hidden="true">
        <span class="hero-bg__glow"></span>
        <span class="hero-bg__grain"></span>
        <span class="hero-bg__sheen" data-sheen></span>
      </span>

      <section class="detail" data-detail aria-hidden="true">
        <div class="detail__top" data-in>
          <button class="back" type="button" data-close aria-label="Back to today">
            <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M10 3.4L5.4 8l4.6 4.6"/></svg>
            <span>Today</span>
          </button>
          <span class="edit" aria-hidden="true">
            <svg viewBox="0 0 16 16"><path d="M10.6 3.2l2.2 2.2-7 7-2.9.7.7-2.9z"/></svg>
          </span>
        </div>

        <div class="hero" data-hero-box>
          <span class="hero__row">
            <span class="hero__time" data-k="time">11:00 to 11:45</span>
            <span class="hero__chip" data-k="chip">in 25 min</span>
          </span>
          <span class="hero__bottom">
            <span class="hero__kicker" data-in>Studio Mareo</span>
            <span class="hero__title" data-k="title">Product review</span>
          </span>
          <span class="hero__track" data-in aria-hidden="true"><span class="hero__fill" data-fill></span></span>
        </div>

        <div class="info">
          <div class="info__row">
            <span class="info__place" data-k="place">
              <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M8 14.2s4.6-4.1 4.6-7.6A4.6 4.6 0 0 0 3.4 6.6c0 3.5 4.6 7.6 4.6 7.6z"/><circle cx="8" cy="6.6" r="1.6"/></svg>
              <span>Loft room, floor 3</span>
            </span>
            <span class="info__map" data-in>Directions</span>
          </div>

          <div class="info__row info__row--guests">
            <span class="guests">
              <span class="av av--a" data-k="av0">ID</span>
              <span class="av av--b" data-k="av1">TM</span>
              <span class="av av--c" data-k="av2">KA</span>
              <span class="av av--d" data-k="av3">RL</span>
            </span>
            <span class="info__who" data-in><b>4 guests</b><span>3 accepted</span></span>
          </div>

          <ul class="agenda">
            <li class="agenda__label" data-in>Agenda<span>1 of 3 done</span></li>
            <li class="is-done" data-in>
              <svg viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.2"/><path class="agenda__tick" d="M5.4 8.2l1.8 1.8 3.5-3.7"/></svg>
              <span>Q4 roadmap, final pass</span>
            </li>
            <li data-in>
              <svg viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.2"/></svg>
              <span>Pricing page, version 2</span>
            </li>
            <li data-in>
              <svg viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.2"/></svg>
              <span>Launch date, open questions</span>
            </li>
          </ul>

          <div class="file" data-in>
            <span class="file__icon" aria-hidden="true"><svg viewBox="0 0 16 16"><path d="M4 1.8h5.2L12.4 5v9.2H4z"/><path d="M9 1.8V5.2h3.4"/></svg></span>
            <span class="file__name"><b>Roadmap Q4.pdf</b><span>2.4 MB, shared by Ines</span></span>
          </div>
        </div>

        <button class="join" type="button" data-in data-join>
          <span class="join__sheen" aria-hidden="true"></span>
          <svg viewBox="0 0 16 16" aria-hidden="true"><rect x="1.8" y="4.4" width="8.6" height="7.2" rx="2"/><path d="M10.4 7.2l3.8-2.2v6l-3.8-2.2"/></svg>
          <span class="join__w">Join call</span>
        </button>
      </section>

      <svg class="cursor" data-cursor viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.2l13.6 8.1-6.1 1.2-3.3 5.6z"/></svg>
    </div>
    <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.

74 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 “Agenda to appointment” 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 soft light page, with two blurred lights behind it (one violet, one peach) and a fine grain, a calendar app's screen rises: ‘Wednesday, 4 November’, the ‘3 events’ label, the week strip with Wednesday in black, then the day's cards. At the top the 09:30 standup with its green bar, the orange line of the present moment at 10:35, the ‘Product review’ meeting card with its violet bar, the time 11:00 to 11:45, the ‘in 25 min’ label, the room and the four overlapping guests, and below the 15:30 one to one. A drawn pointer comes onto the card, which takes a deeper shadow, presses it (the card gives a little) and the card becomes the appointment's page: its white plate grows to fill the screen, the violet bar opens into the coloured header with the warm light in its corner, the grain and a sheen crossing it, and the time, ‘in 25 min’, the title, the room and the four guests each fly to their place, growing and changing colour (from grey and black to white on the header). The rest of the day steps back and goes out of focus, the nearest cards first. Then the page's new parts come in: Today with its arrow, Studio Mareo, the thin bar of the wait filling up, Directions, ‘4 guests, 3 accepted’, the two points of the agenda and the dark ‘Join call’ button. The pointer rests on Join call (the label widens and a sheen crosses it), then goes back to Today and presses: everything makes the trip the other way and lands in the card's own slot with a pixel of bounce, while the day comes back into focus. Everything can be done by hand too.

How it works

Two surfaces that grow

Over the list sit two empty layers: the white plate and the header's background. On opening the plate starts from the card's rectangle and reaches the whole screen, the header's background starts from the 3 pixel bar and reaches the header's box, with position, size and corner radius animated together.

The FLIP of the words

The page's words are already in their final place. For each one its twin in the card is measured, it is moved and shrunk to there with its origin at the top left, and brought back to zero; meanwhile its colour goes from the card's grey or black to the header's white. Going back, the same sum the other way.

A spring as a curve

The curve is a hand written damped oscillation (damping 1 - BOUNCE) that starts at 0 and ends exactly at 1: at 0.84 it passes the mark by about 0.6 per cent, a pixel or two, and settles. GSAP uses it like any other curve.

The day steps back

The other cards, the week and the heading get a little smaller, go out of focus and dim, in order of distance from the tapped card: the nearest first. Going back they come into focus in the same order.

Sizes inside the box

The app's screen is a size container: inside, everything is in cqh and cqw, so it fits any box. Positions are measured divided by the screen's scale, so the sums stay right even when the page is shrunk.

Values to change

NameFileDefaultWhat it changes
OPEN_TIMEscript.js1How many seconds the transition lasts, both ways.
BOUNCEscript.js0.16How much the spring passes the mark: 0 none, 0.4 a lot.
DEPTHscript.js5How far the rest of the day steps back, in percent.
BLURscript.js2.5How out of focus the rest of the day goes, in pixels.
HOLDscript.js1.4How many seconds the page stays open in the walk on its own.
SPEEDscript.js12 = the walk on its own twice as fast, 0.5 = half.
LOOPscript.jstrueRepeats the walk on its own.

Try them in the Playground

When to use it

For a calendar, booking or appointments app, team tools, an agenda of events or classes: anywhere a card in a list has to open into its page without losing the thread. The same pattern works for any card whose bar or colour becomes the page's header.

On phones

The same transition with adapted sizes: the app's screen is as tall as the box up to 560 px, everything inside is measured on its height, the week strip goes away when the screen is very short, and a finger opens and closes it like the pointer.

With reduced motion

Nothing moves: the appointment's page fades in over the day and fades out going back; the drawn pointer is not there.

Pitfalls

  • The card has to be measured while pressed, with its scale: setting it back to 1 before measuring makes the plate start a little bigger and you see a jump.
  • The words fly with their origin at the top left and a single scale taken from the width: they must stay on one line (white-space: nowrap) both in the card and on the page, or the two measures do not match.
  • If the page holding the demo is shrunk, getBoundingClientRect gives shrunk pixels while the transforms are in real pixels: divide by the screen's scale.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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