Skip to content
animorio
IT
All components

Yearly plan sticker card

Pricing, Hover, TransitionsGSAP, CSS onlyMediumCompressed weight: Demo 9.0 KBGSAP 28 KBFreeDownload the zip

The Studio plan card of an invented writing app, printed on thick ivory paper with grain, stacked edges for its thickness and a light sliding over it, on white. A switch picks Monthly or Yearly: going yearly the price rolls digit by digit from 15 to 12 dollars, the old price appears beside it and is struck through by a hand-drawn line, and the vermilion Save 20% sticker peels off the card’s edge: its corner curls up showing the pale backing, it lifts with its shadow left on the paper and sticks back two degrees crooked.

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>
<!--
  "Yearly plan sticker card" 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 plan card with the discount sticker that peels off</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 Studio plan of a writing app, printed on thick paper. Switching to Yearly the price rolls to the new figure,
         the old one is struck through by hand and the Save sticker peels off the card's edge, lifts with its shadow and
         sticks back two degrees crooked -->
    <article class="plan" data-plan>
      <span class="plan__grain" aria-hidden="true"></span>
      <span class="plan__sheen" aria-hidden="true"></span>

      <span class="tag" data-tag>
        <span class="tag__shadow" data-tag-shadow aria-hidden="true"></span>
        <span class="tag__lift" data-tag-lift>
          <span class="tag__face" data-tag-face><span class="tag__words" data-tag-words>Save 20%</span></span>
          <span class="tag__fold" data-tag-fold aria-hidden="true"></span>
        </span>
      </span>

      <header class="plan__head">
        <p class="plan__brand">Paperline</p>
        <h1 class="plan__name">Studio</h1>
        <p class="plan__line">For small teams that write together.</p>
      </header>

      <div class="switch" role="radiogroup" aria-label="Billing period" data-switch>
        <span class="switch__thumb" data-thumb aria-hidden="true"></span>
        <button class="switch__opt" type="button" role="radio" aria-checked="true" data-period="month">Monthly</button>
        <button class="switch__opt" type="button" role="radio" aria-checked="false" data-period="year">Yearly</button>
      </div>

      <div class="price">
        <span class="price__big" data-big aria-hidden="true"><span class="price__cur">$</span><span class="price__digits" data-digits></span></span>
        <span class="price__side">
          <span class="price__old" data-old aria-hidden="true"><span data-old-words>$15</span>
            <svg class="price__strike" viewBox="0 0 48 20" preserveAspectRatio="none" aria-hidden="true">
              <path class="price__strike-a" data-strike pathLength="1" d="M2 14.2C9 12.6 16.5 11.4 24.4 9.6 31.4 8 38 6.7 45.6 5.2"/>
              <path class="price__strike-b" data-strike-b pathLength="1" d="M45.6 5.2C43.6 6.1 41.7 6.6 40.2 7.6"/>
            </svg>
          </span>
          <span class="price__per">per seat / month</span>
        </span>
      </div>
      <p class="bill" data-bill><span class="bill__a" data-bill-month>Billed monthly, cancel anytime</span><span class="bill__b" data-bill-year>Billed $144 a year per seat</span></p>
      <p class="sr" aria-live="polite" data-live></p>

      <ul class="feats">
        <li><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 8.4l2.9 2.8 6.1-6.4"/></svg>Unlimited docs and shared spaces</li>
        <li><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 8.4l2.9 2.8 6.1-6.4"/></svg>A full year of version history</li>
        <li><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 8.4l2.9 2.8 6.1-6.4"/></svg>Comments, review and approvals</li>
      </ul>

      <button class="cta" type="button" data-cta><span class="cta__face">Start 14-day trial</span></button>
    </article>
  </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 “Yearly plan sticker card” 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 white page a plan card rises, ivory, looking like thick paper: you see the grain, the light on its top edge and underneath two darker lines that make the sheet’s thickness, and a soft band of light passes over it from left to right every few seconds. At the top Paperline, Studio and a line saying who it is for; then a sunk switch with Monthly and Yearly and a raised paper pad on the choice; then the big price, 15 dollars per seat a month, three items with checkmarks and the dark Start 14-day trial button. Across the top edge, on the right, a glossy vermilion sticker is stuck: Save 20%. Choosing Yearly the pad runs right, stretching, and settles; the 5 rolls to the 2 and passes it by a pixel while the digits narrow for a moment and come back; beside it the old $15 appears in grey and a vermilion line strikes it by hand, crooked, with a little hook at the end; the line below becomes Billed $144 a year per seat. Meanwhile the sticker peels: its right corner curls up showing the pale backing, then it lifts, bigger, tipped the other way, with its shadow staying down on the paper and softening; it breathes in the air for an instant and falls back, squashes and sticks two degrees crooked, and the card gives half a pixel under the press. Going back to Monthly it all unwinds and the sticker sticks back straight. The button gives under the finger and comes back on a spring; with a mouse the light follows the pointer.

How it works

The thick paper

The card is an ivory box with feTurbulence grain from an SVG background, in multiply, and a stack of shadows: a white inner line at the top for the lit edge, two solid shadows one and two pixels down for the sheet’s thickness, and two wide soft ones for the air.

The sliding light

A blurred band in soft-light moves with a CSS variable that a requestAnimationFrame drives along a smoothstep curve, with a pause off the card on every round. With a mouse the variable chases the pointer on a spring. The same variable moves the sticker’s gloss.

The rolling digits

Each digit is a column one em tall holding a strip from 0 to 9 plus a blank: GSAP takes the strip with yPercent to the new digit with back.out, the right-hand digit first. The blank closes the column to zero width, so 10 and 9 line up. Meanwhile the font’s wdth axis narrows and comes back on an elastic.

The hand-drawn strike

The old price is struck by two SVG paths with pathLength 1: a slightly crooked line and a short hook at its end, drawn one after the other with stroke-dashoffset, as the digits are nearly done rolling.

The sticker that peels

The sticker’s face has a clip-path cutting the corner by --s pixels; the backing is a triangle --s wide, the cut corner mirrored along the fold. A timeline curls the corner, lifts the sticker tipping it while its shadow stays on the card and softens, then sticks it back at TILT degrees with back.out, a squash to 0.985 and the card going down half a pixel.

Values to change

NameFileDefaultWhat it changes
PRICEscript.js15The monthly price per seat, in dollars.
DISCOUNTscript.js20The yearly discount, in percent: the sticker and the new price follow it.
ROLLscript.js0.75The seconds the price takes to roll to the new figure.
PEELscript.js20How far the sticker’s corner curls up, in pixels.
LIFTscript.js7How high the sticker rises off the card, in pixels.
TILTscript.js2The angle it sticks back at on Yearly, in degrees.
SHEENscript.js1The speed of the light sliding across the paper.
HOLDscript.js3.4The seconds on each period when the card switches by itself.
LOOPscript.jstrueKeeps switching by itself until someone touches it.

Try them in the Playground

When to use it

On the pricing page of an app or a subscription service, when the yearly plan has a discount to show: the sticker peeling and sticking back crooked draws the eye to the saving without shouting. The thick paper suits a warm, editorial or crafty brand.

On phones

The same animation with adapted sizes: the card is at most 84% of the screen wide, the gaps between its parts shrink with the height and the price is sized in vh too, so it fits the box. A tap picks the period; the light slides by itself.

With reduced motion

Nothing moves: the light stays still, the pad jumps to the choice, the digits change with a fade, the old price appears already struck and the sticker fades out and back in already at its angle, without peeling.

Pitfalls

  • The sticker’s shadow has to be a sibling of the part that lifts, not a box-shadow: only then does it stay on the paper while the sticker rises, and the gap shows.
  • The back of the curled corner is the cut triangle mirrored along the fold: with a 45 degree fold it is the same triangle flipped on its hypotenuse, so two clip-paths sharing one variable are enough.
  • A price going from two digits to one would leave a hole: the blank column closes to zero width instead of staying as wide as a digit.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 9.0 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 components