Skip to content
motionprompts motionprompts

Product Finish Card

GSAP animation component · Published 2026-11-21 · by vanguardia.dev

Open live demo ↗ Download source

What it does

Two-column product card with a square photo, title, price, a three-button finish selector and a pill button. Choosing a finish dips the photo through the card colour: it fades out in 0.25s, swaps src and fades back in over 0.4s, with the three photos preloaded. On hover, the button's circle turns accent and its arrow slides out right while a twin slides in from the left (pure CSS, 0.45s).

How it's built

Categorycards
Techgsap
Complexitywidget
Performance costlight
Mobile-safeyes

product-card ecommerce finish swatches fade button-hover arrow

Rebuild it with AI

This component's prompt is part of the paid library. Below you can read how it starts; the full prompt, the exact structure, timing and easing an AI agent needs to rebuild the effect, unlocks with any paid plan, yearly or lifetime.

# Product Finish Card — a buy card whose photo changes with the finish, and a sliding-arrow pill button
## Goal
Build a product card on a black page: a light card, 930px wide with 20px corners, split in two equal columns. Left, a square product photo. Right, a small "New" label, the product name ("Model One"), one sentence of description, a monospaced price line ("Model One · €1,490"), a row of three finish buttons (split circular swatch + name) pushed to the bottom, a full-width dark pill button "Add to basket" with a light circle holding an arrow at its right end, and a small delivery note. Choosing a finish dips the photo through the card colour: it fades out quickly, swaps to the photo of that finish and fades back in. Hovering the button turns its circle turquoise and the arrow slides out to the right while an identical one slides in from the left, so it reads as one arrow passing through the circle. The card rises in once on load.
## Tech
Vanilla HTML/CSS/JS, ES modules, `gsap` (npm) core only. The button hover is pure CSS. Fonts self-hosted: **Bricolage Grotesque** (title), **Instrument Sans** (body) and **IBM Plex Mono** (labels and price).
## Layout / HTML
```html
<main class="pfc-escena">
  <article class="pfc" aria-labelledby="pfc-t">
    <div class="pfc__foto">
      <img data-pfc-img src="…/finish-niebla.jpg" alt="Model One in the Mist and steel finish…" width="900" height="900">
    </div>
…

Premium prompt

Unlock this prompt, and every other one

From $99/year, or $139 once for lifetime access. Commercial license included.

See pricing Or start with the free set Already bought? Sign in

New components in your inbox

One email a week, only when new components ship, each with its live demo and prompt.