
The colour columns
Hover, SVG
Quiet hours for notifications: on a 24-hour bar the violet night band is dragged by its two handles, the moon for the start and the sun for the end, and carries over midnight by itself. The large times and the hours of quiet follow the finger; when the present time falls inside the band, the bell is struck through and the line says “Silenced right now”.
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>
<!--
"Quiet hours" 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>Quiet hours</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">
<!-- quiet hours for notifications: the night band is dragged along a 24-hour bar by its two handles,
and the bell gets struck through when the present time falls inside it -->
<section class="qh" data-qh aria-label="Quiet hours">
<header class="qh__head">
<h1>Quiet hours</h1>
<span class="qh__len" data-len></span>
</header>
<p class="qh__range"><b data-from></b><i>to</i><b data-to></b></p>
<div class="qh__track" data-track>
<div class="qh__ticks" data-ticks aria-hidden="true"></div>
<span class="qh__band" data-band="a" aria-hidden="true"></span>
<span class="qh__band" data-band="b" aria-hidden="true"></span>
<span class="qh__now" data-now aria-hidden="true"></span>
<button class="qh__knob" type="button" data-knob="s" role="slider" aria-label="Quiet hours start" aria-valuemin="0" aria-valuemax="24">
<i><svg viewBox="0 0 12 12" aria-hidden="true"><path d="M9.800 7.300A4.300 4.300 0 0 1 4.700 2.200a4.300 4.300 0 1 0 5.100 5.100Z"></path></svg></i>
</button>
<button class="qh__knob" type="button" data-knob="e" role="slider" aria-label="Quiet hours end" aria-valuemin="0" aria-valuemax="24">
<i><svg viewBox="0 0 12 12" aria-hidden="true"><circle cx="6" cy="6" r="2.100"></circle><path d="M6 1v1.200M6 9.800V11M1 6h1.200M9.800 6H11M2.500 2.500l.8.8M8.700 8.700l.8.8M9.500 2.500l-.8.8M3.300 8.700l-.8.8"></path></svg></i>
</button>
</div>
<div class="qh__scale" aria-hidden="true"><span>00</span><span>06</span><span>12</span><span>18</span><span>24</span></div>
<p class="qh__status">
<svg class="qh__bell" data-bell viewBox="0 0 20 20" aria-hidden="true">
<path d="M10 3.200a4.600 4.600 0 0 0-4.600 4.600v2.700L4 13.200h12l-1.400-2.700V7.800A4.600 4.600 0 0 0 10 3.200Z"></path>
<path d="M8.400 15.400a1.700 1.700 0 0 0 3.200 0"></path>
<path class="qh__slash" data-slash d="M4 3.400 16.400 16.600"></path>
</svg>
<span class="qh__st"><span data-status aria-live="polite"></span></span>
<em data-clock></em>
</p>
</section>
<svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.200 19.200 11l-6.300 1.600-3.300 5.900Z"></path></svg>
</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.
20 values to change
Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI
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 “Quiet hours” from Animorio and fit it into my siteThe state is two numbers, start and end in hours. One function derives everything from them: handle positions, band, written times and length.
If the start comes after the end, the band is drawn in two pieces: from the start to 24 and from 0 to the end. Everything is in percentages, so nothing needs measuring again on resize.
The captured pointer becomes an hour (x over width times 24), rounded to STEP minutes; the disc inside the button grows while held and comes back on an elastic.
At each drawing the code checks whether the present time is in the band: when the answer changes, the stroke draws itself with the dashoffset, the bell swings and the line rolls.
| Name | File | Default | What it changes |
|---|---|---|---|
ACCENT | script.js | #8f7dff | The colour of the night band, the hours of quiet and the stroke on the bell. |
START | script.js | 22 | When the quiet starts (22.5 = 22:30). |
END | script.js | 7 | When it ends. |
NOW | script.js | 20.5 | The present time marked by the white rod. |
STEP | script.js | 15 | By how many minutes at a time the handles move. |
SPRING | script.js | 1 | How much the handles bounce on release: 0.3 = a little, 2 = a lot. |
LOOP | script.js | true | Left alone, the demo’s pointer brings the start forward, extends the end and then puts everything back. |
In an app’s notification settings, in the do-not-disturb of a work chat, in the hours when a thermostat, a light or an online shop goes quiet: wherever you pick a range of hours that may cross midnight.
The same card, 312 pixels wide at most: each handle has a 30 by 44 pixel grab area around the disc, the bar has touch-action none and the large times shrink with the width.
The handles follow the finger as always, but with no bounces or growing; the stroke on the bell and the line change at once. The demo does not move by itself.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 6.4 KB; the libraries: GSAP 28 KB.
Tested on 22 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.
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.