Opus Motion ★ Star on GitHub

Product · coffee-pour-cup

Coffee pour: layered cup fills

A glass or mug fills with a layered drink — a thin stream pours each layer in turn, the surface ripples, layers stack with soft interfaces, steam rises, a label sits on the cup and every layer is named on the side with a leader line.

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

Coffee pour: layered cup fills: three frames of the product animation, start, middle and end
Coffee pour: layered cup fills — start, middle and end of the 7.0-second motion.

What Coffee pour: layered cup fills is for

Cafe and drink promos, "what is in your latte" explainers, cocktail / smoothie / bubble-tea layer builds, recipe reveals — set drinkLayers (label, colour, amount) and the cup label.

  • coffee
  • latte
  • cafe
  • drink
  • pour
  • layers
  • cup
  • espresso
  • milk
  • cocktail
  • smoothie
  • tea
  • recipe
  • liquid
  • beverage
  • product

Details

Category
Product & e-commerce animations
Length
7.0 s (210 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
title subtitle
Colour props
background ink accent
Mood
—
Roles
subject

Use Coffee pour: layered cup fills in Remotion, React or HTML

Remotion project

terminal
# copy this motion into your Remotion project
node cli/mgl.mjs add coffee-pour-cup --to ../my-app/src

# render an mp4 (run in the library folder)
node cli/mgl.mjs render coffee-pour-cup --props '{"title":"Caramel latte","subtitle":"Built in four layers","background":"#F1E6D6","ink":"#2B1D12","accent":"#C4642B"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export coffee-pour-cup --as webm-alpha --props '{"title":"Caramel latte","subtitle":"Built in four layers","background":"#F1E6D6","ink":"#2B1D12","accent":"#C4642B"}'

React / Next.js

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

<MotionPlayer
  motion="coffee-pour-cup"
  props={{
    title: 'Caramel latte',
    subtitle: 'Built in four layers',
    background: '#F1E6D6',
    ink: '#2B1D12',
    accent: '#C4642B',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="coffee-pour-cup"
  props='{"title":"Caramel latte","subtitle":"Built in four layers","background":"#F1E6D6","ink":"#2B1D12","accent":"#C4642B"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "coffee-pour-cup",
      "props": {
        "title": "Caramel latte",
        "subtitle": "Built in four layers",
        "background": "#F1E6D6",
        "ink": "#2B1D12",
        "accent": "#C4642B"
      }
    }
  ]
}

Coffee pour: layered cup fills props

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

PropDefaultWhat it does
title"Caramel latte"headline (top of the label column)
subtitle"Built in four layers"small caps line under the headline
cupLabel"LATTE"text on the cup ('' for none)
drinkLayers[{"label":"Caramel","color":"#B9742E","amount":0.7,"detail":"2 pumps"},{"label":"Espres…layers bottom to top, up to 6: {label, color, amount (relative height), detail?}
cup"glass"'glass' (tapered latte glass) or 'mug' (straight mug with handle)
pourFrames120frames the whole fill takes (split between layers by amount)
steamtruerising steam after the pour
background"#F1E6D6"page colour or 'transparent'
ink"#2B1D12"text colour
accent"#C4642B"cup label colour and subtitle
startAt0frame the scene starts

Notes & credits

Technique sources:

  • original (round 3)