Skip to content
animorio
IT
All components

Wishlist panel

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

The wishlist of Kiln & Linen, a made-up homeware shop, on white: three cards with a drawn mug, vase and lamp, the heart filling with a beat and a ring, a copy of the product flying on an arc into the list icon and the counter rolling. The panel drops from the icon with the saved pieces and the total, «Price dropped −15%» lights up on the vase with the old price struck through, Move to bag slides the piece away towards the bag and closes the gap on a spring, Remove leaves Undo for a few seconds. One accent only, terracotta.

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>
<!--
  "Wishlist panel" 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>Wishlist panel</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 wishlist of a made-up homeware shop, Kiln & Linen: the heart fills with a beat, a small copy of the
         product flies on an arc into the list, the counter rolls; the panel drops down with the saved pieces, one
         price drops, Move to bag slides a piece away and Remove can be undone -->
    <section class="shop" data-shop aria-label="Kiln &amp; Linen, new in">
      <svg width="0" height="0" class="defs" aria-hidden="true">
        <defs>
          <linearGradient id="g-mug" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#f4ede3"/><stop offset="1" stop-color="#d8cab6"/></linearGradient>
          <linearGradient id="g-vase" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#dfe3da"/><stop offset="1" stop-color="#a9b3a2"/></linearGradient>
          <linearGradient id="g-lamp" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#f3e4c4"/><stop offset="1" stop-color="#d4b37a"/></linearGradient>
          <radialGradient id="g-shadow" cx=".5" cy=".5" r=".5"><stop offset="0" stop-color="#3a2e24" stop-opacity=".22"/><stop offset="1" stop-color="#3a2e24" stop-opacity="0"/></radialGradient>
          <symbol id="p-mug" viewBox="0 0 64 64">
            <ellipse cx="31" cy="53" rx="17" ry="3.2" fill="url(#g-shadow)"/>
            <path d="M43 27.5h3.2a5.8 5.8 0 0 1 0 11.6H42" fill="none" stroke="#cbbba4" stroke-width="3.2" stroke-linecap="round"/>
            <path d="M18 23h25v22a7 7 0 0 1-7 7H25a7 7 0 0 1-7-7Z" fill="url(#g-mug)"/>
            <ellipse cx="30.5" cy="23" rx="12.5" ry="2.6" fill="#e9dfd1"/>
            <ellipse cx="30.5" cy="23.4" rx="10.4" ry="1.7" fill="#bfae96" opacity=".55"/>
            <path d="M21.5 28v14" stroke="#fff" stroke-width="2" stroke-linecap="round" opacity=".55"/>
          </symbol>
          <symbol id="p-vase" viewBox="0 0 64 64">
            <ellipse cx="32" cy="55" rx="15" ry="2.8" fill="url(#g-shadow)"/>
            <path d="M26.5 10h11v6.5c0 3.2 9.5 8.5 9.5 19.5 0 10.4-6.6 17-15 17s-15-6.6-15-17c0-11 9.5-16.3 9.5-19.5Z" fill="url(#g-vase)"/>
            <ellipse cx="32" cy="10" rx="5.5" ry="1.4" fill="#cfd6c9"/>
            <path d="M22 33c.6-4.6 3.4-7.6 6-9.6" stroke="#fff" stroke-width="2" stroke-linecap="round" fill="none" opacity=".6"/>
          </symbol>
          <symbol id="p-lamp" viewBox="0 0 64 64">
            <ellipse cx="32" cy="55" rx="13" ry="2.6" fill="url(#g-shadow)"/>
            <path d="M32 31v20" stroke="#b6a07c" stroke-width="2.2" stroke-linecap="round"/>
            <ellipse cx="32" cy="52" rx="8.5" ry="2.2" fill="#c9b18a"/>
            <path d="M15 31a17 16 0 0 1 34 0Z" fill="url(#g-lamp)"/>
            <ellipse cx="32" cy="31" rx="17" ry="2" fill="#c7a265" opacity=".6"/>
            <path d="M21.5 24.5a12 12 0 0 1 6-6.4" stroke="#fff" stroke-width="2" stroke-linecap="round" fill="none" opacity=".6"/>
          </symbol>
          <symbol id="i-heart" viewBox="0 0 24 24"><path d="M12 20.2s-7.6-4.6-7.6-10.3a4.3 4.3 0 0 1 7.6-2.8 4.3 4.3 0 0 1 7.6 2.8c0 5.7-7.6 10.3-7.6 10.3Z"/></symbol>
        </defs>
      </svg>

      <header class="bar">
        <p class="brand">Kiln <span class="brand__amp">&amp;</span> Linen <span class="brand__sub">New in</span></p>
        <div class="bar__tools">
          <button class="tool" type="button" data-bag aria-label="Bag">
            <svg class="tool__icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M5.5 8.5h13l-1 11.5h-11Z"/><path d="M9 8.5V7a3 3 0 0 1 6 0v1.5"/></svg>
            <span class="badge badge--bag" data-bag-badge><span class="roll" data-roll="bag"><span class="roll__line">1</span></span></span>
          </button>
          <button class="tool tool--wish" type="button" data-wish aria-label="Wishlist" aria-expanded="false" aria-controls="wish-panel">
            <svg class="tool__icon tool__heart" viewBox="0 0 24 24" aria-hidden="true"><use href="#i-heart" class="tool__heart-line"/><use href="#i-heart" class="tool__heart-fill" data-wish-fill/></svg>
            <span class="badge" data-wish-badge><span class="roll" data-roll="wish"><span class="roll__line">0</span></span></span>
          </button>
        </div>
      </header>

      <ul class="grid" data-grid>
        <li class="card" data-product="mug" data-name="Stoneware mug" data-price="24">
          <div class="card__tile">
            <svg class="card__art" data-art viewBox="0 0 64 64" aria-hidden="true"><use href="#p-mug"/></svg>
            <button class="heart" type="button" data-heart aria-pressed="false" aria-label="Save Stoneware mug">
              <svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-heart" class="heart__line"/><use href="#i-heart" class="heart__fill" data-fill/></svg>
              <span class="heart__ring" data-ring></span>
            </button>
          </div>
          <p class="card__name">Stoneware mug</p>
          <p class="card__price">$24</p>
        </li>
        <li class="card" data-product="vase" data-name="Linen vase" data-price="58">
          <div class="card__tile">
            <svg class="card__art" data-art viewBox="0 0 64 64" aria-hidden="true"><use href="#p-vase"/></svg>
            <button class="heart" type="button" data-heart aria-pressed="false" aria-label="Save Linen vase">
              <svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-heart" class="heart__line"/><use href="#i-heart" class="heart__fill" data-fill/></svg>
              <span class="heart__ring" data-ring></span>
            </button>
          </div>
          <p class="card__name">Linen vase</p>
          <p class="card__price">$58</p>
        </li>
        <li class="card" data-product="lamp" data-name="Dome lamp" data-price="96">
          <div class="card__tile">
            <svg class="card__art" data-art viewBox="0 0 64 64" aria-hidden="true"><use href="#p-lamp"/></svg>
            <button class="heart" type="button" data-heart aria-pressed="false" aria-label="Save Dome lamp">
              <svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-heart" class="heart__line"/><use href="#i-heart" class="heart__fill" data-fill/></svg>
              <span class="heart__ring" data-ring></span>
            </button>
          </div>
          <p class="card__name">Dome lamp</p>
          <p class="card__price">$96</p>
        </li>
      </ul>

      <div class="panel" id="wish-panel" data-panel role="region" aria-label="Wishlist" hidden>
        <div class="panel__head">
          <p class="panel__title">Wishlist</p>
          <p class="panel__sum">Total <span class="roll roll--sum" data-roll="sum"><span class="roll__line">$0</span></span></p>
        </div>
        <ul class="rows" data-rows>
          <li class="row" data-row="mug">
            <div class="row__in">
              <svg class="row__art" viewBox="0 0 64 64" aria-hidden="true"><use href="#p-mug"/></svg>
              <div class="row__text">
                <p class="row__name">Stoneware mug</p>
                <p class="row__price"><span class="row__now">$24</span></p>
              </div>
              <div class="row__acts">
                <button class="act act--bag" type="button" data-move>Move to bag</button>
                <button class="act act--x" type="button" data-remove aria-label="Remove Stoneware mug"><svg viewBox="0 0 12 12" aria-hidden="true"><path d="M3 3l6 6M9 3l-6 6"/></svg></button>
              </div>
            </div>
          </li>
          <li class="row" data-row="vase">
            <div class="row__in">
              <svg class="row__art" viewBox="0 0 64 64" aria-hidden="true"><use href="#p-vase"/></svg>
              <div class="row__text">
                <p class="row__name">Linen vase</p>
                <p class="row__price"><span class="row__was" data-was>$58<span class="row__strike" data-strike></span></span><span class="row__now roll roll--now" data-roll="vase"><span class="roll__line">$58</span></span></p>
                <span class="drop" data-drop><span class="drop__shine" data-drop-shine></span><svg viewBox="0 0 12 12" aria-hidden="true"><path d="M6 2.5v7M3.2 6.8 6 9.6l2.8-2.8"/></svg><span data-drop-text>Price dropped</span></span>
              </div>
              <div class="row__acts">
                <button class="act act--bag" type="button" data-move>Move to bag</button>
                <button class="act act--x" type="button" data-remove aria-label="Remove Linen vase"><svg viewBox="0 0 12 12" aria-hidden="true"><path d="M3 3l6 6M9 3l-6 6"/></svg></button>
              </div>
            </div>
          </li>
          <li class="row" data-row="lamp">
            <div class="row__in">
              <svg class="row__art" viewBox="0 0 64 64" aria-hidden="true"><use href="#p-lamp"/></svg>
              <div class="row__text">
                <p class="row__name">Dome lamp</p>
                <p class="row__price"><span class="row__now">$96</span></p>
              </div>
              <div class="row__acts">
                <button class="act act--bag" type="button" data-move>Move to bag</button>
                <button class="act act--x" type="button" data-remove aria-label="Remove Dome lamp"><svg viewBox="0 0 12 12" aria-hidden="true"><path d="M3 3l6 6M9 3l-6 6"/></svg></button>
              </div>
            </div>
          </li>
        </ul>
        <p class="empty" data-empty>Nothing saved yet. Tap a heart.</p>
        <div class="undo" data-undo>
          <p class="undo__text"><span data-undo-text>Removed</span></p>
          <button class="undo__btn" type="button" data-undo-btn>Undo</button>
          <span class="undo__time" data-undo-time></span>
        </div>
      </div>

      <div class="flyers" data-flyers aria-hidden="true"></div>
      <p class="sr" aria-live="polite" data-live></p>
    </section>
  </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.

43 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 “Wishlist panel” 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

At the top the shop name, Kiln & Linen, and on the right the bag with one piece in it and the wishlist heart. Below, three cards: the stoneware mug, the linen vase and the dome lamp, drawn with soft gradients on a warm tile, with their price. Press a card’s heart and it squashes, swells and fills with terracotta while a ring spreads out; a small copy of the product flies on an arc to the heart at the top, which jumps, fills and gets a rolling counter. Open the list and a panel drops with the saved pieces, each with its drawing, its price and a rolling total. On the vase the price drops: the old one is struck through, the new one rolls in terracotta and the «Price dropped −15%» pill lights up with a glint running across it. Move to bag slides the row to the right, a copy flies into the bag and its number goes up; the gap closes and the rows below settle on a spring. Remove takes the row away and raises a dark bar with Undo and a shrinking line. If nobody touches it, the scene plays by itself.

How it works

The beating heart

The heart’s fill is a second use of the same path, growing from scale 0 with back.out(3); meanwhile the button squashes to 0.86, swells to 1.25 and settles with elastic.out, and a terracotta ring spreads to 1.75 as it fades.

The arc flight

A small copy of the drawing leaves the card and goes to the heart at the top: one tween from 0 to 1 in 0.75 seconds, and on every frame the position is the straight line between the two points minus a height times the sine of the progress; it shrinks to 0.28 and fades in the last 14%.

Numbers that roll

Each number is a window one line tall: the new value comes in from below with back.out and the old one leaves upwards, in the right direction (up when adding, down when removing).

The panel and the rows

The panel drops from the icon’s corner from scale 0.94 with back.out(1.5) and the rows arrive one after another. A new row opens from height 0 to its own; a removed row slides away, then its height goes to 0 and the rows below settle with elastic.out.

The price that drops

The line over the old price draws itself with scaleX from the left, the new price rolls down, the pill opens with back.out and a glint runs across it with xPercent.

Undo

Remove raises the dark bar with Undo; a line under it shrinks over 3.2 seconds and then the bar leaves. Undo puts back the row, the heart and the counter.

Values to change

NameFileDefaultWhat it changes
PRICE_DROPscript.js15How much the vase price drops in the list, in percent.
FLY_TIMEscript.js0.75Seconds the copy of the product takes to fly into the list.
ARCscript.js1How high the flight arcs (0 = straight line).
BEATscript.js1.25How much the heart swells on the beat when you save.
UNDO_TIMEscript.js3.2Seconds Undo stays after Remove.
START_BAGscript.js1Pieces already in the bag.
LOOP_PAUSEscript.js1.4Seconds of rest before the loop starts again.

Try them in the Playground

When to use it

In an online shop for homeware, fashion or gifts: the heart on product cards, the wishlist in the top bar and the panel to move saved pieces to the cart, with a notice when a price drops.

On phones

Everything is in em and the size depends on both the width and the height of the window, so the three cards and the panel fit in the phone box. A tap does what a click does; below 380 pixels the «New in» label goes.

With reduced motion

No flights or springs: the heart fills with a fade, numbers change without rolling, the panel and the rows appear and leave with a fade, the price pill lights up without the glint.

Pitfalls

  • The flight uses getBoundingClientRect at click time and a fixed container: it works at any window size with no recalculation.
  • The hidden panel stays display: block with visibility: hidden, so GSAP can measure and animate it as soon as it opens.
  • A closing row cannot animate its height with back.out (it would go below zero): the height goes to 0 with power3, and the rows below make the spring with y.
  • The pill’s minus sign is written with String.fromCharCode(8722), not by hand.

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