
The layered button
Buttons, Hover, Physics
The week of someone scheduling a brand’s social posts. On top the four channels with their post counts, in the middle the seven days, below the drafts. Drag a draft onto a day: the day opens to take it, the draft shrinks into a tile and snaps in on a spring, and its channel lights up with one more post. Posts already on the calendar move the same way.
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>
<!--
"Social post calendar" 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>Social post calendar</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 week of a social media calendar: drag a draft onto a day, the day opens to take it, the post snaps
in on a spring and its channel lights up with one more in its count -->
<section class="pc" data-pc aria-label="Post calendar">
<header class="pc__head">
<h2 class="pc__title">This week</h2>
<span class="pc__roll pc__info"><span data-info aria-live="polite">3 posts scheduled</span></span>
</header>
<div class="pc__channels" data-channels aria-hidden="true"></div>
<div class="pc__week" data-week role="group" aria-label="Days"></div>
<div class="pc__tray">
<span class="pc__traylabel">Drafts</span>
<div class="pc__drafts" data-drafts></div>
</div>
</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.
16 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 “Social post calendar” from Animorio and fit it into my siteScheduled posts and drafts are two lists; the week and the tray are redrawn from them on every change. Dragging means moving an object from one list to the other or changing its day.
On pointerdown the original stays where it is, faded, and an absolute copy follows the pointer: the tray does not shift while dragging and the return, if needed, has somewhere to go.
The day is the column under the pointer, with a band of tolerance above and below the grid: no need to hit the cell. On release the copy goes to the cell’s first free row.
In one tween the copy changes position, width, height, radius and colour; when it arrives it is removed, the lists are redrawn and the real tile settles on an elastic.
| Name | File | Default | What it changes |
|---|---|---|---|
FIRST | script.js | 23 | The date of the Monday of the week shown. |
SPRING | script.js | 1 | How much the post bounces when it snaps to the day: 0.3 = a little, 2 = a lot. |
REACH | script.js | 46 | How many pixels above and below the grid a day still takes the post. |
LOOP | script.js | true | Left alone, the demo’s pointer takes two drafts to two days and moves a post. |
In the dashboard of a social or marketing tool, in the back office of a blog that also schedules posts, in a newsroom’s editorial calendar. The same gesture suits assigning shifts, lessons or deliveries to the days of a week.
The same card, as wide as the screen: the seven cells narrow together, drafts drag with a finger without scrolling the page and the day takes the post even if the finger is just above or below the grid.
The copy follows the finger and on release the post simply appears in the day, with no shrinking or bouncing; counts and text 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.5 KB; the libraries: GSAP 28 KB.
Tested on 21 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.