Skip to content
animorio
IT
Back to the library

Sticky notes board

Physics, HoverGSAP, CSS onlyMediumCompressed weight: Demo 10 KBGSAP 28 KBFreeDownload the zip

The board of Tackwell, a made-up collaboration tool, with five sticky notes in soft colours: picked up, a note peels off the board, its shadow spreads and it hangs from its top edge above the finger, swinging with the inertia of the gesture like a hand-written damped pendulum. Let go, it glides a few pixels, swings back to its own small tilt and settles, the shadow tightening. Thrown fast past the edge it peels away, spins and flies off, and a new note drops into its place. Mira’s and Jon’s cursors, with their initials, wander over the board on their own. Minimal in style, one gesture.

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>
<!--
  "Sticky notes board" 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>The board of sticky notes that swing from their top edge and fly away</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>
    <!-- a board in Tackwell, a made up whiteboard for teams. Sticky notes in soft colours, paper with its own shadow:
         picked up, a note hangs from its top edge and swings with the gesture (a damped pendulum written by hand);
         let go, it settles and its shadow tightens; thrown fast past the edge it peels off and flies away, and a new
         note lands in its place. Two cursors of other people wander over the board on their own -->
    <section class="board" data-board aria-label="Offsite ideas board">
      <header class="board__head">
        <span class="board__mark" aria-hidden="true">
          <svg viewBox="0 0 20 20"><rect x="3.2" y="3.2" width="10.4" height="10.4" rx="2.2"/><path d="M7 16.8h7.4a2.4 2.4 0 0 0 2.4-2.4V7"/></svg>
        </span>
        <span class="board__titles">
          <span class="board__name">Offsite ideas</span>
          <span class="board__meta" data-status>Tackwell <span aria-hidden="true">&middot;</span> <span data-saved>Saved</span></span>
        </span>
        <span class="board__people" aria-label="3 people on this board">
          <span class="face face--mira">MR</span>
          <span class="face face--jon">JO</span>
          <span class="face face--you">You</span>
        </span>
      </header>
      <div class="board__field" data-field></div>
      <div class="cursor cursor--mira" data-cursor="mira" aria-hidden="true">
        <svg class="cursor__arrow" viewBox="0 0 20 22"><path d="M2.6 2.2l14.2 8.1-6.3 1.3-3.3 5.8z"/></svg>
        <span class="cursor__tag">MR</span>
      </div>
      <div class="cursor cursor--jon" data-cursor="jon" aria-hidden="true">
        <svg class="cursor__arrow" viewBox="0 0 20 22"><path d="M2.6 2.2l14.2 8.1-6.3 1.3-3.3 5.8z"/></svg>
        <span class="cursor__tag">JO</span>
      </div>
      <p class="board__hint" data-hint>Drag a note. Throw it off the board to archive it.</p>
    </section>

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

33 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 “Sticky notes board” 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 grey page, a white board with rounded corners, a one-pixel edge, layered shadows and a barely visible grid. At the top the Tackwell mark, the name «Offsite ideas», the word «Saved» and the initials of the three people. The five notes drop one after the other, each with its own slight tilt, the darker band of its glue at the top, a whisper of grain and the initials of whoever wrote it. Hovered with the mouse a note rises a touch. Picked up, it lifts: the shadow spreads and softens, the bottom curls a little, and the note hangs from its top edge right above the finger; moving the hand it swings with the inertia, further the sharper the gesture, and comes to hang straight. Let go, it glides a few pixels, swings back to its tilt in a couple of ever smaller swings, sinks a hair into the board and comes back while the shadow tightens; the word at the top turns to «Saving…» and back to «Saved». Thrown fast past the edge it peels off, spins, flutters and fades, and a new note, with another idea and another colour, drops into its place swinging. Mira’s and Jon’s cursors, an arrow with a tag of initials that trails a little behind, wander on their own; left alone, Mira moves a note and puts it back, Jon throws one away.

How it works

One loop and small steps

One gsap.ticker moves everything: for every note that is not still the physics takes four small steps a frame (a 240th of a second each), so stiff springs and the pendulum stay stable even when a frame is late. Notes at rest are skipped.

The top edge tied to the hand

The top edge does not jump to the finger but is tied to it by a stiff spring (900, damped at 58): it adds a hair of weight and above all a clean acceleration, which is what the pendulum needs. The pivot sits above the point you grabbed: transform-origin moves there, and the note is corrected by (R − I)·d so it does not jump.

The hand-written damped pendulum

Hanging, the angle follows θ'' = −(g − a_y)/L · sin θ + a_x/L · cos θ − c θ', with L at 62% of the side: the hand’s horizontal acceleration pushes it, the vertical one changes its weight, gravity brings it down and c damps it out. Let go, it goes back to its tilt on a slightly springy spring.

The lift and the shadow

The lift is an underdamped spring: picked it goes to 1, let go to 0 and a little below, so the note sinks a hair and comes back. A CSS variable --lift drives the two-layer shadow (it lengthens and softens), the scale and the curl of the bottom; below zero it stays at zero, so the shadow never becomes an invalid value.

The throw past the edge

On release it looks at where the centre would be in 0.2 s: if that is off the board and the speed is above THROW_SPEED, the note flies with its own speed, a little gravity and air drag, the spin it takes from the gesture and a flutter, then fades. Half a second later a new note drops into its place from above, already lifted and tilted, and settles with the same physics.

The other people’s cursors

Each cursor chases a random point on a soft spring and picks a new one every two or three seconds; the arrow leans with the speed, the tag with the initials trails behind and a drift under a pixel keeps it alive. In the automatic round a GSAP timeline drives the cursors directly: Mira’s and Jon’s hands pick up notes with the same function as yours.

Values to change

NameFileDefaultWhat it changes
SWINGscript.js1How much the note swings with the hand: 0 keeps it straight.
GRAVITYscript.js2600The pull that brings the hanging note back down: higher swings quicker.
SWING_DAMPINGscript.js3.4Lower lets the note swing longer before it hangs still.
LIFTscript.js1How high a picked note rises off the board (the shadow grows with it).
SETTLE_BOUNCEscript.js0.5How much the note sinks into the board and comes back when it lands.
THROW_SPEEDscript.js1100How fast, in pixels a second, a note must be thrown to leave the board.
CURSORSscript.jstrueMira’s and Jon’s cursors wandering on the board.
LOOPscript.jstrueLeft alone, Mira moves a note and Jon throws one away, again and again.

Try them in the Playground

When to use it

For the page of a product for teams (whiteboards, brainstorming, retrospectives, shared design tools), for the hero of a landing page that has to show at a glance what working together in real time means, or for a real board of ideas inside an app.

On phones

The same physics with adapted sizes: the board and the notes are measured on the height too (min of vw and vh), the finger picks up and throws like the mouse, and at every resize the notes keep their place in proportion. The hover lift is mouse only.

With reduced motion

Board and notes fade in; the notes move under the finger but without lifting or swinging, a thrown note fades out and the new one fades in; the cursors stay still and the automatic round does not run.

Pitfalls

  • The pendulum needs the hand’s acceleration, and differentiating pointermove twice is pure noise: tying the top edge to the finger with a stiff spring gives an acceleration that is already clean, for a lag you cannot see.
  • With stiff springs one step a frame blows up as soon as a frame is late: the steps are a 240th of a second and dt is capped at a 20th.
  • Moving transform-origin on an element that is already rotated makes it jump: the position is corrected by (R − I)·d at the same moment.
  • A box-shadow with a negative blur radius is invalid and vanishes for a frame: the --lift variable stops at zero, and the sink is done with the scale only.
  • The cursor must sit above every note, and notes raise their z-index at each pick: a small fixed number is overtaken after a few rounds.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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