Skip to content
animorio
IT
All components

Plant shop card

Cards, Hover, ImagesGSAP, CSS onlyMediumCompressed weight: Demo 9.0 KBGSAP 28 KBFreeDownload the zip

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.

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>
<!--
  "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>

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.

54 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 “Plant shop 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 background, a white card with a soft shadow. On the left the real photo of an echeveria, a succulent with velvety leaves, in a terracotta pot, with a glass tag at the bottom saying «Shown in Terracotta». On the right, at the top, «Succulents» and the small cart bag with its count; the name, Velvet echeveria, in a serif, the Latin name in italics and the price, 34 dollars with the pot. Below, the pot line with the name of the finish and three material swatches: terracotta, matte white ceramic and concrete, with a green ring on the chosen one. Then three care lines, light «Bright, indirect», water «Every 10 days» and height «14 cm», each with its line icon, and the green Add to cart button. Picking another pot, the ring slides over on a spring and the swatch lands with a small bounce; in the photo the pot really changes: the new finish rises from the bottom of the pot to the rim like a glaze, while the leaves stay the same and the plant breathes a little; the finish name and the tag on the photo roll to the new word and the price rolls to 38 or 42 dollars, right digit first. Passing over the care lines, the sun stretches its rays one after the other and warms up, the drop falls a breath and ripples underneath, the ruler ticks step up. Add to cart sinks the card a pixel and lets it come back with a small spring, a light crosses the button, the label rolls to Added with a tick that draws itself, and the bag at the top hops as the count goes up; after a moment the button is back. Left alone, the card shows itself off: the sun, the water, the white pot, the concrete, the cart, and the terracotta again.

How it works

The pot cut out of the photo itself

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

Every finish is the same photo

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.

The glaze that rises

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.

Words and digits that roll

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.

The button that confirms

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.

Values to change

NameFileDefaultWhat it changes
GLAZEscript.js0.75The seconds the new finish takes to rise into the pot.
SPRINGscript.js1.6How far the ring and the swatches overshoot as they land.
ROLLscript.js0.5The seconds a word or a digit takes to roll.
PRESSscript.js1How many pixels the card sinks when Add to cart is pressed.
HOLDscript.js1.8How many seconds Added stays before the button goes back.
PLANTscript.js26The price of the plant alone, in dollars.
POT_TERRACOTTAscript.js8The price of the terracotta pot.
POT_WHITEscript.js12The price of the white ceramic pot.
POT_CONCRETEscript.js16The price of the concrete pot.

Try them in the Playground

When to use it

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

On phones

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.

With reduced motion

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.

Pitfalls

  • The mask matches the pot only if the photo always keeps its proportions: the frame has aspect-ratio 760 / 681 and the images fill it without object-fit cover.
  • A grayscale PNG with no alpha channel as mask-image masks everything: the mask is white with alpha.
  • The photo copies load from the same file, so the browser downloads it only once.

Libraries

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.

Testing

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