Opus Motion ★ Star on GitHub

Product · flash-deal-timer-card

Flash deal card (countdown + draining stock bar)

A product card with a FLASH DEAL ribbon, discount badge, struck-through old price, a ticking HH:MM:SS countdown and a stock bar that drains and turns red as units run out, with a pulsing call-to-action.

A free, MIT-licensed product animation from the Opus Motion Library — 616 motions for Remotion, React and plain HTML.

Flash deal card (countdown + draining stock bar): three frames of the product animation, start, middle and end
Flash deal card (countdown + draining stock bar) — start, middle and end of the 6.0-second motion.

What Flash deal card (countdown + draining stock bar) is for

Flash sales, limited drops, black-friday countdowns, urgency / scarcity beats in store promos — set the product, prices, timer start, stock numbers and colours.

  • flash sale
  • countdown
  • timer
  • stock
  • scarcity
  • deal
  • discount
  • ecommerce
  • retail
  • product
  • limited
  • urgency
  • sale

Details

Category
Product & e-commerce animations
Length
6.0 s (180 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
badge
Colour props
productColor background card ink accent danger
Image props
src
Mood
nature
Roles
subject

Use Flash deal card (countdown + draining stock bar) in Remotion, React or HTML

Remotion project

terminal
# copy this motion into your Remotion project
node cli/mgl.mjs add flash-deal-timer-card --to ../my-app/src

# render an mp4 (run in the library folder)
node cli/mgl.mjs render flash-deal-timer-card --props '{"badge":"","productColor":"#E8553A","background":"#17141F","card":"#FFFFFF","ink":"#1D1B24","accent":"#E8553A","danger":"#D62839","src":""}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export flash-deal-timer-card --as webm-alpha --props '{"badge":"","productColor":"#E8553A","background":"#17141F","card":"#FFFFFF","ink":"#1D1B24","accent":"#E8553A","danger":"#D62839","src":""}'

React / Next.js

tsx
import {MotionPlayer} from 'opus-motion-library/web';

<MotionPlayer
  motion="flash-deal-timer-card"
  props={{
    badge: '',
    productColor: '#E8553A',
    background: '#17141F',
    card: '#FFFFFF',
    ink: '#1D1B24',
    accent: '#E8553A',
    danger: '#D62839',
    src: '',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

html
<script src="opus-motion.element.js" defer></script>

<opus-motion motion="flash-deal-timer-card"
  props='{"badge":"","productColor":"#E8553A","background":"#17141F","card":"#FFFFFF","ink":"#1D1B24","accent":"#E8553A","danger":"#D62839","src":""}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "flash-deal-timer-card",
      "props": {
        "badge": "",
        "productColor": "#E8553A",
        "background": "#17141F",
        "card": "#FFFFFF",
        "ink": "#1D1B24",
        "accent": "#E8553A",
        "danger": "#D62839",
        "src": ""
      }
    }
  ]
}

Flash deal card (countdown + draining stock bar) props

24 parameters — change any of them to make the motion yours.

PropDefaultWhat it does
ribbon"Flash deal"text in the ribbon chip
productName"Studio Headset"product title
oldPrice149original price number (struck through)
newPrice89deal price number
currency"$"currency prefix
badge""discount badge text; empty = automatic -NN% from the two prices
timer"02:14:37"countdown start as HH:MM:SS
timerLabel"Ends in"small caps line above the countdown
timerSpeed6timer seconds that pass per real second (1 = real time; higher ticks faster)
stockTotal60total stock (bar full = this many)
stockStart44units left at the start
stockEnd7units left at the end of the drain
stockText"Only {n} left"stock sentence; {n} is replaced by the units left
claimedText"{p}% claimed"right-hand note; {p} is replaced by the % claimed
buttonLabel"Grab the deal"call-to-action text
src""product image (public/ path or https URL); empty = procedural drawing
productKind2procedural drawing: 0 bag, 1 mug, 2 headphones, 3 box, 4 bottle, 5 watch, 6 lamp, 7 t-shirt
productColor"#E8553A"procedural product colour
background"#17141F"page colour or 'transparent'
card"#FFFFFF"card colour
ink"#1D1B24"text colour (card text, digit boxes)
accent"#E8553A"price, badge, bar and button colour
danger"#D62839"bar colour when stock is almost gone
startAt0frame the card starts entering

Notes & credits

Technique sources:

  • original (round 3)