
The magnifying dock
Menus, Hover, Images
The card of a plant in a made-up online nursery, Fernbury Nursery: a real photo of an echeveria in its pot, the name and the Latin name, the price, three pots to choose from. Picking a pot, the new colour rises into the real photo like a glaze, bottom to top, and the plant stays as it is; the price rolls digit by digit, the ring slides to the swatch and the care lines answer the pointer. Add to cart sinks the card a pixel, sweeps a light across the button, draws the tick and bumps the cart count. Minimal premium style.
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>
<!--
"Plant shop 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>Plant shop card</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/geist@5.3.0/index.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource/instrument-serif@5.3.0/index.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource/instrument-serif@5.3.0/400-italic.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<main class="stage" data-stage>
<!-- the product card of a made-up online plant nursery: the real photo of the plant, and the pot you pick rises
into the photo like a glaze, while the price rolls, the care lines answer the pointer and Add to cart confirms -->
<article class="card" aria-labelledby="plant-name" data-card>
<figure class="photo" data-photo>
<img class="photo__img" src="succulenta.webp" width="760" height="681" alt="A velvet echeveria in a terracotta pot, on a pale wall">
<div class="glaze" data-glaze="white" aria-hidden="true"><img class="photo__img glaze__img" src="succulenta.webp" width="760" height="681" alt=""></div>
<div class="glaze" data-glaze="concrete" aria-hidden="true"><img class="photo__img glaze__img" src="succulenta.webp" width="760" height="681" alt=""></div>
<figcaption class="shown">
<span class="shown__label">Shown in</span>
<span class="roll" data-shown><span class="roll__track"><span>Terracotta</span><span>Matte white</span><span>Concrete</span></span></span>
</figcaption>
</figure>
<header class="head">
<div class="head__top">
<p class="eyebrow">Succulents</p>
<span class="bag" data-bag aria-live="polite">
<svg class="bag__icon" viewBox="0 0 20 20" aria-hidden="true"><path d="M4.6 7.2h10.8l-.9 9.1a1.4 1.4 0 0 1-1.4 1.2H6.9a1.4 1.4 0 0 1-1.4-1.2z"/><path d="M7.4 7.2V6a2.6 2.6 0 0 1 5.2 0v1.2"/></svg>
<span class="bag__count roll" data-count><span class="roll__track" data-count-track><span>0</span><span>1</span><span>2</span><span>3</span><span>4</span><span>5</span><span>6</span><span>7</span><span>8</span><span>9</span></span></span>
<span class="sr" data-count-text>Cart: 0 plants</span>
</span>
</div>
<h2 class="name" id="plant-name">Velvet echeveria</h2>
<p class="latin">Echeveria ‘Velours’</p>
<p class="price" aria-live="polite"><span class="price__cur">$</span><span class="price__digits" data-price aria-hidden="true"></span><span class="sr" data-price-text>$34</span><span class="price__note">with pot</span></p>
</header>
<div class="pot">
<div class="pot__row">
<span class="pot__label" id="pot-label">Pot</span>
<span class="pot__name roll" data-potname aria-hidden="true"><span class="roll__track"><span>Terracotta</span><span>Matte white</span><span>Concrete</span></span></span>
</div>
<div class="swatches" role="radiogroup" aria-labelledby="pot-label" data-swatches>
<span class="swatches__ring" aria-hidden="true" data-ring></span>
<button class="swatch swatch--terracotta" type="button" role="radio" aria-checked="true" aria-label="Terracotta, 34 dollars" data-pot="terracotta"><span class="swatch__chip"></span></button>
<button class="swatch swatch--white" type="button" role="radio" aria-checked="false" aria-label="Matte white ceramic, 38 dollars" data-pot="white"><span class="swatch__chip"></span></button>
<button class="swatch swatch--concrete" type="button" role="radio" aria-checked="false" aria-label="Concrete, 42 dollars" data-pot="concrete"><span class="swatch__chip"></span></button>
</div>
</div>
<ul class="care" aria-label="Care">
<li class="care__item" data-care="light">
<svg class="care__icon" viewBox="0 0 24 24" aria-hidden="true">
<circle class="sun__core" cx="12" cy="12" r="3.6"/>
<g class="sun__rays" data-rays>
<path d="M12 3.2v2.1"/><path d="M12 18.7v2.1"/><path d="M3.2 12h2.1"/><path d="M18.7 12h2.1"/>
<path d="M5.8 5.8l1.5 1.5"/><path d="M16.7 16.7l1.5 1.5"/><path d="M5.8 18.2l1.5-1.5"/><path d="M16.7 7.3l1.5-1.5"/>
</g>
</svg>
<span class="care__text"><span class="care__label">Light</span><span class="care__value">Bright, indirect</span></span>
</li>
<li class="care__item" data-care="water">
<svg class="care__icon" viewBox="0 0 24 24" aria-hidden="true">
<path class="drop" data-drop d="M12 3.6c2.6 3.4 4.6 6.2 4.6 8.6a4.6 4.6 0 0 1-9.2 0c0-2.4 2-5.2 4.6-8.6z"/>
<ellipse class="ripple" data-ripple cx="12" cy="21" rx="6" ry="1.2"/>
</svg>
<span class="care__text"><span class="care__label">Water</span><span class="care__value">Every 10 days</span></span>
</li>
<li class="care__item" data-care="height">
<svg class="care__icon" viewBox="0 0 24 24" aria-hidden="true">
<path class="ruler" d="M9 3.5v17"/>
<g class="ticks" data-ticks><path d="M9 6h3"/><path d="M9 9.5h5"/><path d="M9 13h3"/><path d="M9 16.5h5"/></g>
</svg>
<span class="care__text"><span class="care__label">Height</span><span class="care__value">14 cm</span></span>
</li>
</ul>
<button class="add" type="button" data-add>
<span class="add__shine" aria-hidden="true" data-shine></span>
<span class="add__label roll" data-addlabel><span class="roll__track"><span>Add to cart</span><span class="add__done"><svg class="tick" viewBox="0 0 16 16" aria-hidden="true"><path data-tick pathLength="1" d="M3.4 8.4l3 3 6.2-6.6"/></svg>Added</span></span></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>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.
54 values to change
Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI
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 “Plant shop card” from Animorio and fit it into my siteThe pot mask is a PNG as big as the photo, made from the photo: the orange pixels under the leaves (red over green, green over blue, saturated enough), kept only if they reach the bottom of the pot through a fill from a point at the bottom, and softened by a pixel. So the mask matches the pot to the pixel, rim included.
Over the photo sit two more copies of the same picture, with mask-image on the pot PNG and a filter: high grayscale, brightness and contrast for the white ceramic, lower for concrete. Keeping the same picture keeps the real terracotta’s lights, shadows and grain, and the pot really looks like another material.
Picking a pot moves its copy on top (a growing z-index) and takes its clip-path from inset(100% 0 0 0) to inset(0) in GLAZE seconds with power3.inOut: the colour rises from the bottom to the rim. Going back to terracotta, the finish drains down and leaves the real photo. The photo underneath breathes, scale 1.012 and back.
The finish name, the tag on the photo, the button and the cart count are one-line windows over a column of words: the column moves with yPercent. The price has a 0 to 9 strip per digit, and the digits turn right to left, 0.06 seconds apart.
One timeline: the card sinks PRESS pixels in 0.09 seconds and comes back with elastic.out, the button squeezes to 0.975, a gradient light crosses it from -120% to 260%, the label rolls to Added and the tick, with pathLength 1, draws from strokeDashoffset 1 to 0 (autoRound off). After HOLD seconds Add to cart is back.
| Name | File | Default | What it changes |
|---|---|---|---|
GLAZE | script.js | 0.75 | The seconds the new finish takes to rise into the pot. |
SPRING | script.js | 1.6 | How far the ring and the swatches overshoot as they land. |
ROLL | script.js | 0.5 | The seconds a word or a digit takes to roll. |
PRESS | script.js | 1 | How many pixels the card sinks when Add to cart is pressed. |
HOLD | script.js | 1.8 | How many seconds Added stays before the button goes back. |
PLANT | script.js | 26 | The price of the plant alone, in dollars. |
POT_TERRACOTTA | script.js | 8 | The price of the terracotta pot. |
POT_WHITE | script.js | 12 | The price of the white ceramic pot. |
POT_CONCRETE | script.js | 16 | The price of the concrete pot. |
In the shop window of an online nursery or plant shop, in a product grid or as a quick view of a plant; the same mask changes the colour of any object in a photo (a bag, a mug, a chair).
The photo shrinks beside the name and price, the pots sit on the pot line, the three care lines become three columns and the button goes underneath at full width; the care lines answer a tap.
The pot changes with a fade instead of rising, the words and the price change without rolling, the card does not sink and the card does not show itself off.
GSAP 3.15.0, Geist (font variabile) 5.3.0, Instrument Serif 5.3.0.
Compressed with gzip, the three demo files weigh 9.0 KB; the libraries: GSAP 28 KB.
Tested on 20 November 2026
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.
You asked for
We made it for you: it’s in the library, with the preview, the Playground and the code to copy.
An animation you can’t find, or a site to take apart in the journal: tell us which. We pick the next ones from here.
With your account’s email and password.
or with your email
You’re signed in as .
With your account, you can download the zip of every animation and every pack, for free.