Skip to content
animorio
IT
All components

Automation schedule

Pickers, Hover, TransitionsGSAP, CSS onlyMediumCompressed weight: Demo 7.6 KBGSAP 28 KBFreeDownload the zip

The Schedule panel of an automation in Relay, a made-up workflow app: «Send weekly report». The frequency is picked in a segmented control, Hourly, Daily, Weekly and Monthly, with the white pill sliding on a spring; for Weekly the seven days are circles to switch on, for Daily they all light up, for Hourly and Monthly a line takes their place. The time moves by a quarter of an hour with the minus and the plus, its digits rolling; below, the next three runs are worked out for real and roll one after the other at every change. Save schedule works with a running line and becomes Scheduled with its tick, and up top Draft becomes Active. On white, with a single orange accent.

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>
<!--
  "Automation schedule" 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>Automation schedule</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">
    <!-- the Schedule panel of an automation in Relay, a made-up workflow app:
         how often it runs, on which days, at what time, the next three runs and Save -->
    <section class="panel" data-panel aria-label="Schedule for Send weekly report">
      <header class="head">
        <span class="glyph" aria-hidden="true">
          <svg viewBox="0 0 20 20" width="20" height="20"><path d="M4 5.5h5.5a2.5 2.5 0 0 1 2.5 2.5v4a2.5 2.5 0 0 0 2.5 2.5H16" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/><rect x="2.5" y="3.5" width="4" height="4" rx="1.2" fill="currentColor"/><rect x="13.5" y="12.5" width="4" height="4" rx="1.2" fill="none" stroke="currentColor" stroke-width="1.6"/></svg>
        </span>
        <span class="head__txt">
          <span class="head__title">Send weekly report</span>
          <span class="head__sub">Relay · Automation</span>
        </span>
        <span class="state" data-state><span class="state__in" data-state-text>Draft</span></span>
      </header>

      <div class="row">
        <span class="label" id="lab-freq">Repeat</span>
        <div class="seg" role="radiogroup" aria-labelledby="lab-freq" data-seg>
          <span class="seg__pill" data-pill aria-hidden="true"></span>
          <button class="seg__opt" role="radio" aria-checked="false" tabindex="-1" data-freq="hourly"><span>Hourly</span></button>
          <button class="seg__opt" role="radio" aria-checked="false" tabindex="-1" data-freq="daily"><span>Daily</span></button>
          <button class="seg__opt" role="radio" aria-checked="true" tabindex="0" data-freq="weekly"><span>Weekly</span></button>
          <button class="seg__opt" role="radio" aria-checked="false" tabindex="-1" data-freq="monthly"><span>Monthly</span></button>
        </div>
      </div>

      <div class="row row--detail">
        <span class="label" data-detail-label>On</span>
        <div class="detail" data-detail>
          <div class="days" role="group" aria-label="Days of the week" data-days>
            <button class="day" aria-pressed="true" data-day="1" aria-label="Monday"><span>M</span></button>
            <button class="day" aria-pressed="false" data-day="2" aria-label="Tuesday" tabindex="-1"><span>T</span></button>
            <button class="day" aria-pressed="false" data-day="3" aria-label="Wednesday" tabindex="-1"><span>W</span></button>
            <button class="day" aria-pressed="false" data-day="4" aria-label="Thursday" tabindex="-1"><span>T</span></button>
            <button class="day" aria-pressed="false" data-day="5" aria-label="Friday" tabindex="-1"><span>F</span></button>
            <button class="day" aria-pressed="false" data-day="6" aria-label="Saturday" tabindex="-1"><span>S</span></button>
            <button class="day" aria-pressed="false" data-day="0" aria-label="Sunday" tabindex="-1"><span>S</span></button>
          </div>
          <p class="note" data-note aria-live="polite"></p>
        </div>
      </div>

      <div class="row">
        <span class="label" data-time-label>At</span>
        <div class="time">
          <button class="step" data-step="-1" aria-label="15 minutes earlier"><svg viewBox="0 0 12 12" width="12" height="12" aria-hidden="true"><path d="M2.5 6h7" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg></button>
          <span class="clock" data-clock aria-live="polite" aria-label="09:00"></span>
          <button class="step" data-step="1" aria-label="15 minutes later"><svg viewBox="0 0 12 12" width="12" height="12" aria-hidden="true"><path d="M2.5 6h7M6 2.5v7" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg></button>
          <span class="tz">CET · Lisbon office</span>
        </div>
      </div>

      <div class="runs">
        <span class="label">Next runs</span>
        <ol class="runs__list" data-runs aria-live="polite">
          <li class="run"><span class="run__mask"><span class="run__in"></span></span></li>
          <li class="run"><span class="run__mask"><span class="run__in"></span></span></li>
          <li class="run"><span class="run__mask"><span class="run__in"></span></span></li>
        </ol>
      </div>

      <button class="save" data-save>
        <span class="save__bar" data-bar aria-hidden="true"></span>
        <span class="save__face save__face--a" data-face="idle">Save schedule</span>
        <span class="save__face" data-face="busy">Saving</span>
        <span class="save__face" data-face="done"><svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><path data-tick d="M3.5 8.4l3 2.9 6-6.3" pathLength="1" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>Scheduled</span>
      </button>
    </section>
  </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.

38 values to change

Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI

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 “Automation schedule” 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

The Schedule panel of «Send weekly report», an automation in Relay, a made-up workflow app. Repeat has four segments: the white pill slides on a spring under the chosen one. With Weekly the seven days sit below, circles to switch on and off (one always stays on); with Daily they all light up, with Hourly and Monthly a line takes their place, «Every hour, at 00 past» or «On the 1st of every month». At moves the time by a quarter of an hour with the minus and the plus, and the digits roll the right way. Next runs shows the three real runs from Sunday 29 November at 20:40, and at every change they roll one after the other. Save schedule becomes Saving with a line running along the bottom and then Scheduled with its tick drawing itself, while up top Draft becomes Active; changing anything brings Save schedule back. When nobody touches it the demo plays by itself: Daily, Weekly again, Wednesday and Friday on, 08:30, Save.

How it works

The pill measured on the segments

The white pill takes x and width from the chosen segment’s offsetLeft and offsetWidth and gets there on a spring; on resize and once the fonts are ready it measures again.

The next runs, worked out for real

From a fixed moment (Sunday 29 November 2026, 20:40) it looks for the next three dates that fit the frequency, the days and the time: every hour, every day, the chosen weekdays or the 1st of the month.

Rolling lines and digits

Each line and each digit sits in a one-line mask: the new one comes in from below while the old one leaves above, at the same time, and the old one is removed at the end. Going back, the time rolls the other way.

One face of the button at a time

Save schedule, Saving and Scheduled sit on top of each other outside the flow: the old face leaves in 0.16 seconds and only then the new one comes in, so the labels never overlap and stay centred.

Values to change

NameFileDefaultWhat it changes
SLIDE_TIMEscript.js0.5Seconds the white pill takes to slide to the chosen frequency.
ROLL_TIMEscript.js0.42Seconds a digit or a run date takes to roll to its new value.
ROLL_STAGGERscript.js0.06Seconds between one run and the next as they roll.
SPRINGscript.js0.75How springy the pill and the days are (lower = more bounce).
SAVE_TIMEscript.js0.9Seconds the line runs along Save before it says Scheduled.
STEP_MINUTESscript.js15Minutes added or taken away by the minus and plus.
AUTO_PAUSEscript.js6Seconds of quiet before the demo plays by itself again.

Try them in the Playground

When to use it

In automation, newsletter, report and backup apps, anywhere people choose when something should repeat: showing the next dates right away removes any doubt about what will actually happen.

On phones

The panel is in em and its size depends on both the width and the height of the window, so it all fits the short phone box; a tap works like a click.

With reduced motion

No springs or rolling: the pill, the digits and the dates change in place, the days and the line swap with a fade, and the demo does not play by itself.

Pitfalls

  • The button faces sit outside the flow, on top of each other: in the same cell a long hidden label would widen the button and push the visible one off centre.
  • The pill is measured with offsetLeft and offsetWidth, never with getBoundingClientRect on a segment that is animating, and measured again when the fonts arrive.
  • The dates are worked out in UTC from a fixed moment: with the browser’s time zone the next runs would change from one person to the next.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

Tested on 29 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 components