Skip to content
animorio
IT
Back to the library

Sticker sheet

Physics, Hover, SVGGSAP, CSS onlyAdvancedCompressed weight: Demo 10 KBGSAP 28 KBFreeDownload the zip

Someone searched for “sticker” and the site found only a few pieces. Here is the sticker sheet of a made-up messaging app, Murmur: under two messages sits a paper-coloured sheet with six die-cut stickers drawn by us, “nice”, “+1”, a star, a bolt, “brb” and an arrow. Pick a sticker up and its corner curls to show the white back, then it comes off the sheet, its shadow grows and you carry it with your finger, tilted by the speed. Dropped on a message it sticks with a small squash, the bubble gives a nod and a shine crosses the vinyl; on the sheet the die-cut outline stays behind. Dropped anywhere else it goes back to its place. Minimal style.

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>
<!--
  "Sticker sheet" 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>Sticker sheet</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>
    <!-- the chat of a made-up messaging app, Murmur, with its sticker sheet: a sticker is peeled off the sheet with
         its corner curling, carried with a little tilt and stuck on a message with a squash and a passing shine;
         on the sheet it leaves its die-cut outline -->
    <section class="chat" aria-label="Chat with Ada Moreau">
      <header class="chat__head">
        <span class="avatar" aria-hidden="true">AM</span>
        <span class="who">
          <span class="who__name">Ada Moreau</span>
          <span class="who__sub">Typing in Murmur</span>
        </span>
        <svg class="chat__more" viewBox="0 0 20 20" aria-hidden="true"><path d="M5 10h.01M10 10h.01M15 10h.01"></path></svg>
      </header>

      <div class="thread">
        <p class="msg msg--in" data-bubble><span class="msg__txt">Got the keys to the new studio today.</span><span class="msg__time">16:02</span></p>
        <p class="msg msg--out" data-bubble><span class="msg__txt">Finally! Send me a photo of the light.</span><span class="msg__time">16:04</span></p>
      </div>

      <div class="tray">
        <div class="tray__bar">
          <span class="tray__title">Stickers</span>
          <span class="tray__pack">Studio pack</span>
          <button class="tray__reset" type="button" data-reset>Reset</button>
        </div>
        <div class="sheet" data-sheet aria-label="Sticker sheet: drag a sticker onto a message">
          <div class="slot" data-slot="nice"></div>
          <div class="slot" data-slot="plus"></div>
          <div class="slot" data-slot="star"></div>
          <div class="slot" data-slot="bolt"></div>
          <div class="slot" data-slot="brb"></div>
          <div class="slot" data-slot="arrow"></div>
        </div>
      </div>
    </section>

    <div class="carry" data-carry aria-hidden="true"></div>
    <svg class="ptr" data-ptr viewBox="0 0 24 24" aria-hidden="true"><path d="M5.2 3.4l13 8.2-5.6 1.3 3.3 5.9-2.4 1.3-3.3-5.9-4 4.1z"></path></svg>
    <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.

31 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 “Sticker sheet” 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 white background, the chat card with Ada Moreau in a made-up messaging app, Murmur: one message coming in, one going out, and below the sticker tray with the “Studio pack”. The sheet is paper-coloured with a fine striped texture, and the six die-cut stickers have a white rim and an orange, black or cream face: “nice”, “+1”, an outlined star, a bolt, “brb”, an arrow. Hovering a sticker lifts its bottom right corner a little. Picking it up curls the corner back to show the white back with the fold in shadow, the sticker comes off growing a little, its shadow lengthens and the fold relaxes but stays slightly curled while you carry it. It follows the finger with a little lag and tilts with the speed. Over a message a dashed orange outline appears: dropped there, the sticker lands at a random angle, squashes, the fold flattens, the bubble dips by a pixel and springs back, and a shine crosses the vinyl. The die-cut outline stays on the sheet. Dropped outside the messages it goes back to its slot and sticks down again. Reset sends all the stickers back to the sheet, one after another. On its own it sticks “nice” and the star, takes one back and puts everything back.

How it works

A sticker is a polygon that folds

Each shape (pill, circle, star, rounded square) is a list of points in a 100 box. The peeling corner is the bottom-right point; pulling it towards the centre by s, the fold is the line half way. The part before the line stays (a clipPath), the part after is reflected across the line and becomes the white back, with a gradient that darkens away from the fold and a thin shadow on the stuck part.

Peel, carry, stick

On touch the sticker moves to a layer above the page without jumping (measure before and after, and GSAP takes up the difference). A timeline curls the corner up to PEEL and relaxes it to CARRY_CURL with a spring; the scale goes to 1.1 and the CSS variable --lift lengthens the shadow. quickTo makes x and y follow with FOLLOW seconds of lag, and the rotation follows the average speed times TILT.

On the message

Dropped over a bubble, the sticker moves into the bubble with left and top in percent (so it survives a resize), returns to x and y zero, squashes to SQUASH, the fold and shadow go to zero and then an elastic spring brings it back to 1; the bubble dips 1.5 pixels and comes back, and a stripe of light crosses the face in SHINE seconds.

Going back and the self-running loop

Outside the messages the sticker flies back to its slot on the sheet, with its corner still slightly up, lands and sticks down again. The self-running loop uses the same functions as a real hand with a drawn pointer following a Bézier curve; the first real touch stops it.

Values to change

NameFileDefaultWhat it changes
PEELscript.js0.42How far the corner curls when the sticker is peeled, as a share of its size.
CARRY_CURLscript.js0.12How curled the corner stays while it is carried.
PEEKscript.js0.09How far the corner lifts when the pointer passes over.
FOLLOWscript.js0.2How long the sticker takes to catch up with the finger, in seconds.
TILTscript.js0.03How much the sticker tilts with speed.
SQUASHscript.js0.9How much it squashes when it sticks (1 = none).
SHINEscript.js0.8How long the shine takes to cross it, in seconds.
LOOP_PAUSEscript.js1.6The pause at the end of the self-running loop, in seconds.

Try them in the Playground

When to use it

In the sticker tray of a chat or messaging app; for reactions on a comment or a photo; in a notes or journaling app, to decorate a page; on a launch page that wants people to play with the brand, with its own stickers to stick.

On phones

Stickers measure clamp(40px, min(14vw, 10.6vh), 62px), so they also follow the height; the sheet is a three by two grid and the bubbles tighten with clamp. Stuck stickers sit inside the bubble in percent, so they stay in place if the window changes. They are dragged with a finger (touch-action none on the stickers); when the box is short the chat header hides.

With reduced motion

No curls, springs, tilt or shine: the sticker is dragged and set down at once with a fade, and the self-running loop does not start. On load “nice” and the star are already stuck on the messages.

Pitfalls

  • Moving the sticker from the sheet to the layer above the page made it jump: the box is measured before and after the move and the difference goes into x and y.
  • Folding any shape: the polygon is cut along the line and only the cut part is reflected, otherwise with the star the points of the back ended up on the wrong side.
  • An animated CSS shadow as a filter is heavy: the --lift variable only changes the numbers of the drop-shadow, on the child, while GSAP moves the parent.

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