Skip to content
animorio
IT
Back to the library

Calendar week loader

SVG, TransitionsGSAP, CSS onlyMediumCompressed weight: Demo 12 KBGSAP 28 KBFreeDownload the zip

The week loading screen of a made-up calendar app, Halden, light and premium like a Dribbble shot: the hour lines draw themselves, every day holds the same three grey placeholders in the same places and one light crosses them all. Then the data arrives, day after day: each placeholder slides and stretches on a spring to the real hour of its event, fills with indigo (coral for focus time), its edge grows from the top and its title and time come in. The status counts the events up to 13 and turns to Synced with a check that draws itself, the now line crosses today, the week totals roll and at the end the pointer opens a meeting.

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 week loader" 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>Halden is syncing your week</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 loading screen of a calendar app. The week opens as a skeleton: the hour lines draw themselves and every
         day holds the same grey slabs in the same places, with one light crossing them. When the data arrives each
         slab slides and stretches to the real hour of its event, fills with colour, and its title and time come in.
         The now line draws across today, the status turns to Synced and the totals roll. Then the pointer opens one
         event, and the week syncs again -->
    <div class="wrap" data-wrap>
      <section class="win" data-win aria-label="Halden calendar, week 47">
        <span class="win__sheen" aria-hidden="true"><span class="win__sheen-band" data-sheen></span></span>

        <header class="bar">
          <span class="brand">
            <svg class="brand__mark" viewBox="0 0 20 20" aria-hidden="true">
              <rect x="2.5" y="4" width="15" height="13.5" rx="3.6"/>
              <path class="brand__mark-cut" d="M2.5 8.6h15"/>
              <path class="brand__mark-ring" d="M6.6 2.4v3.2M13.4 2.4v3.2"/>
            </svg>
            <span class="brand__name" data-brand>Halden</span>
          </span>
          <span class="bar__title">
            <span class="bar__month">November</span>
            <span class="bar__week">Week 47</span>
          </span>
          <span class="bar__right">
            <span class="status" data-status>
              <svg class="status__icon" viewBox="0 0 16 16" aria-hidden="true">
                <circle class="status__track" cx="8" cy="8" r="5.6"/>
                <g data-ring-spin><circle class="status__arc" data-ring cx="8" cy="8" r="5.6" pathLength="1"/></g>
                <path class="status__check" data-check pathLength="1" d="M4.9 8.3l2.1 2.1 4.2-4.6"/>
              </svg>
              <span class="status__words">
                <span class="status__w status__w--busy" data-busy>Syncing <b data-count>0</b><i>/13</i></span>
                <span class="status__w status__w--done" data-done>Synced</span>
              </span>
            </span>
            <button class="bar__btn" type="button" data-refresh aria-label="Sync the week again">
              <svg viewBox="0 0 16 16" aria-hidden="true" data-refresh-icon>
                <path d="M13 8a5 5 0 1 1-1.6-3.7"/>
                <path d="M11.8 1.9v2.8H9"/>
              </svg>
            </button>
          </span>
        </header>

        <div class="cal" data-cal>
          <div class="heads" data-heads></div>
          <div class="body" data-body>
            <div class="gutter" data-gutter></div>
            <div class="grid" data-grid>
              <svg class="lines" data-lines aria-hidden="true"></svg>
              <div class="cols" data-cols></div>
              <svg class="now" data-now aria-hidden="true">
                <line class="now__week" data-now-week/>
                <line class="now__day" data-now-day/>
                <path class="now__tick" data-now-tick/>
              </svg>
              <span class="now__pill" data-now-pill aria-hidden="true"><span>11:40</span></span>
              <div class="pop" data-pop aria-hidden="true">
                <span class="pop__edge"></span>
                <span class="pop__title">Roadmap sync</span>
                <span class="pop__when">Wed 18, 10:00 to 11:00</span>
                <span class="pop__where">
                  <svg viewBox="0 0 12 12"><path d="M6 10.8s3.4-3.1 3.4-5.6a3.4 3.4 0 0 0-6.8 0C2.6 7.7 6 10.8 6 10.8z"/><circle cx="6" cy="5.2" r="1.2"/></svg>
                  Room Atlas
                </span>
                <span class="pop__people">
                  <span class="pop__av" style="--h:228">AK</span>
                  <span class="pop__av" style="--h:18">TB</span>
                  <span class="pop__av" style="--h:160">MR</span>
                  <span class="pop__more">+2</span>
                  <span class="pop__join" data-join>Join</span>
                </span>
              </div>
              <svg class="cursor" data-cursor viewBox="0 0 18 18" aria-hidden="true">
                <path d="M3.2 2.2l11 6.1-4.7 1.2-2.3 4.4z"/>
              </svg>
            </div>
          </div>
        </div>

        <footer class="foot" data-foot>
          <span class="foot__item"><b data-total="events">0</b> events</span>
          <span class="foot__item"><b data-total="meet">0h</b> in meetings</span>
          <span class="foot__item foot__item--warm"><b data-total="focus">0h</b> focus</span>
        </footer>
      </section>
    </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.

39 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 week loader” 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 with a very fine grain the white window of Halden, a made-up calendar app, lands on a spring: at the top the brand with its small indigo calendar, November, Week 47, a status pill with a spinning ring and Syncing 0/13, and the button to sync again. Below is the week, from Monday 16 to Friday 20 (Tuesday to Thursday on a phone), with the hours from 9 to 5 on the left. The hour and day lines draw themselves, and every day fills with the same three grey placeholders in the same places, crossed by a single light that runs over the whole week. Then the day names take the place of their little bars and, day after day, each placeholder slides and stretches with a bounce to the real hour of its event: it fills with indigo, or with finely striped coral for focus time, the left edge grows from the top, it swells a little and the title and time come in (Standup, Roadmap sync, Lunch with Theo, Client call...), while the status counts up to 13/13. At the end the pill turns indigo with a white check that draws itself and Synced, today takes an indigo veil, the now line draws in coral across Wednesday with 11:40 on the left, the totals at the bottom roll (13 events, 12h in meetings, 3h focus) and a sheen crosses the window. The pointer goes to Roadmap sync, the event lifts, it presses it and the card opens with time, room, guests and Join, which gets pressed; then the window leaves and the week syncs again. The button at the top, or a tap on the week, starts it again at once; hovering the events lifts them by a pixel.

How it works

The skeleton is already the event

Each event is born as a grey placeholder in one of the three fixed places of its day (top and height in percent). When the data arrives GSAP takes top and height to the real hour with an elastic.out: the same element slides and stretches, then the colour layer, the edge with scaleY from the top and the words come on over it.

Lines in pixels

The hour and day lines are an SVG whose viewBox is as big as the grid in pixels, rebuilt on resize: so stroke-dasharray and stroke-dashoffset draw them without stretching. The now line uses pathLength 1 and draws from 1 to 0.

One light over the whole week

The light on the placeholders does not start from each placeholder: a single value from 0 to 1 says where the light is on the window, and on every update each glint moves with translateX to the right place for its placeholder. It looks like one beam passing over everything.

Values to change

NameFileDefaultWhat it changes
BRANDscript.jsHaldenThe app's name in the bar.
SYNC_TIMEscript.js2.4Seconds from the first event to the last.
SPRINGscript.js1How springy the placeholders are as they slide to their hour: 0.4 calm, 2 very bouncy.
SHIMMERscript.js1How bright the light crossing the skeleton is (0 none).
NOWscript.js11:40The time of the now line, between 9:00 and 17:00.
SHOW_CARDscript.jstrueAt the end the pointer opens a meeting.
HOLDscript.js3.2Seconds the synced week stays before syncing again.
LOOPscript.jstrueSync again and again.
--accentstyle.css#4b55d6The indigo of the events, today and the status.
--warmstyle.css#e2603cThe coral of focus time and the now line.
--pagestyle.css#f2f0ebThe warm white of the page.

Try them in the Playground

When to use it

As the loading screen of a calendar, a shared schedule, a booking or productivity app, a staff rota tool: instead of a spinner the shape of the week, which turns into the real week right where it belongs.

On phones

The same animation with adapted measures: below a 470 pixel window the week shows three days, Tuesday to Thursday, the app name and week number hide, the hours get shorter, short events keep only their title and the grid is sized on the height too; the meeting card always stays inside the week.

With reduced motion

Nothing moves or bounces: the events are already at their hours and the skeleton gives way to the colours and words with a fade, then the status turns to Synced and the now line and the totals appear.

Pitfalls

  • With a fixed viewBox and preserveAspectRatio none the lines stretch and the dashing breaks: the lines SVG is rebuilt in pixels on every resize.
  • The dashed now line across the whole week ran over the event words: it lives in the lines SVG, under the columns, and only today's solid stroke sits on top.
  • A one hour event on a phone is 25 pixels tall and its time was cut: below 34 pixels the event puts its words on one line and keeps only the title.

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