Opus Motion ★ Star on GitHub

Product · price-tag-drop

Price tag drop

A price tag hangs on a string, drops in and swings to rest; the old price is struck through, the new price pops in and a discount badge stamps on (auto percentage unless set).

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

Price tag drop: three frames of the product animation, start, middle and end
Price tag drop — start, middle and end of the 5.0-second motion.

What Price tag drop is for

Sales, launch pricing, "now only" beats, subscription price reveals — set currency, old and new price.

  • price
  • sale
  • discount
  • offer
  • tag
  • product
  • pricing
  • strikethrough
  • ecommerce
  • overlay

Details

Category
Product & e-commerce animations
Length
5.0 s (150 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
label badge tagline
Colour props
background card ink accent
Mood
—
Roles
accent

Use Price tag drop in Remotion, React or HTML

Remotion project

terminal
# copy this motion into your Remotion project
node cli/mgl.mjs add price-tag-drop --to ../my-app/src

# render an mp4 (run in the library folder)
node cli/mgl.mjs render price-tag-drop --props '{"label":"SPECIAL OFFER","badge":"","tagline":"Today only","background":"#F4EFE6","card":"#FFFDF8","ink":"#1D1B24","accent":"#E8412A"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export price-tag-drop --as webm-alpha --props '{"label":"SPECIAL OFFER","badge":"","tagline":"Today only","background":"#F4EFE6","card":"#FFFDF8","ink":"#1D1B24","accent":"#E8412A"}'

React / Next.js

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

<MotionPlayer
  motion="price-tag-drop"
  props={{
    label: 'SPECIAL OFFER',
    badge: '',
    tagline: 'Today only',
    background: '#F4EFE6',
    card: '#FFFDF8',
    ink: '#1D1B24',
    accent: '#E8412A',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="price-tag-drop"
  props='{"label":"SPECIAL OFFER","badge":"","tagline":"Today only","background":"#F4EFE6","card":"#FFFDF8","ink":"#1D1B24","accent":"#E8412A"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "price-tag-drop",
      "props": {
        "label": "SPECIAL OFFER",
        "badge": "",
        "tagline": "Today only",
        "background": "#F4EFE6",
        "card": "#FFFDF8",
        "ink": "#1D1B24",
        "accent": "#E8412A"
      }
    }
  ]
}

Price tag drop props

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

PropDefaultWhat it does
label"SPECIAL OFFER"small heading on the tag
oldPrice"129.00"original price text (struck through)
newPrice"79.00"new price text
currency"$"currency symbol / prefix (e.g. $, €, £, Rs.)
badge""badge text; empty = automatic -NN% from the two prices (hidden if not computable)
tagline"Today only"small line under the new price
background"#F4EFE6"backdrop colour or 'transparent'
card"#FFFDF8"tag colour
ink"#1D1B24"text and string colour
accent"#E8412A"label, strike, badge colour
swing16initial swing angle in degrees
startAt6frame the tag starts dropping

Notes & credits

Technique sources:

  • original (round 3)