Skip to content
animorio
IT
All components

Social post calendar

Calendars, Hover, PhysicsGSAP, CSS onlyAdvancedCompressed weight: Demo 6.5 KBGSAP 28 KBFreeDownload the zip

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.

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>
<!--
  "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>

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.

16 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 “Social post calendar” 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 white, a light card: “This week” and, on the right, a line saying what just happened. Below, four pills with the channels and their counts (Photo, Video, Story, News), then seven white cells, Monday 23 to Sunday 29, holding the colour tiles of posts already scheduled, and at the bottom three drafts: “Studio tour”, “Autumn palette”, “Q&A answers”, each with a bar in its channel’s colour. Pick up a draft and a copy lifts, slightly tilted, following the finger; the day underneath takes a dark border and grows a touch. Let go and the copy drops into the cell, shrinking and colouring until it is a tile, then bounces into place; the channel pill gives a little kick and its number goes up, and at the top it reads “Thu 26 · Studio tour”. Dropped outside the week it goes back where it came from. Tiles too can be picked up and moved to another day. With the keyboard: Enter picks up, the arrows choose the day, Enter puts down.

How it works

Two lists and a drawing

Scheduled 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.

A copy in the hand

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 that takes it

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.

From draft to tile

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.

Values to change

NameFileDefaultWhat it changes
FIRSTscript.js23The date of the Monday of the week shown.
SPRINGscript.js1How much the post bounces when it snaps to the day: 0.3 = a little, 2 = a lot.
REACHscript.js46How many pixels above and below the grid a day still takes the post.
LOOPscript.jstrueLeft alone, the demo’s pointer takes two drafts to two days and moves a post.

Try them in the Playground

When to use it

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.

On phones

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.

With reduced motion

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.

Pitfalls

  • Posts, drafts and channels are made up and the channels have generic names: with real data every move must be saved on the server, and if saving fails the post goes back where it was.
  • Redrawing the list removes the element that had captured the pointer: the copy in the hand and the drag state live outside the list’s elements.
  • Each cell holds three tiles before it is full: with more posts a day you need a “+2” or a cell that grows.
  • Drag only shuts out keyboard users: picking up, choosing the day and putting down also work with Enter and the arrows, and an aria-live region says where the post is about to land.
  • On iPhone a long press on a draft opens the system menu: touch-action: none and -webkit-touch-callout: none.

Libraries

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.

Testing

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