Opus Motion ★ Star on GitHub

Data · weather-forecast-strip

Weather forecast strip

A week-ahead forecast: a row of cards (a stacked list in 1:1 and 9:16) rises in one after another, each with the day, a live animated weather icon (spinning sun, drifting cloud, falling rain / snow, flashing storm, fog bands), a chance-of-rain figure, counting high and low temperatures and a warm-to-cool range bar; today is highlighted.

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

Weather forecast strip: three frames of the animated chart, start, middle and end
Weather forecast strip — start, middle and end of the 6.0-second motion.

What Weather forecast strip is for

Weather apps and bulletins, travel and event planning, outdoor-business "what to expect" reels, smart-home widgets. Pass your own days with a day name, icon (sun, moon, partly, cloud, rain, storm, snow, fog, wind), high and low temperatures and optional chance of rain.

  • weather
  • forecast
  • week
  • temperature
  • icons
  • sun
  • rain
  • cards
  • travel
  • app
  • widget
  • climate
  • bulletin
  • overlay

Details

Category
Animated charts & data visualisation
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
title subtitle unit
Colour props
background card ink accent accent2 sunColor
Mood
nature, ui
Roles
accent, subject

Use Weather forecast strip in Remotion, React or HTML

Remotion project

terminal
# copy this motion into your Remotion project
node cli/mgl.mjs add weather-forecast-strip --to ../my-app/src

# render an mp4 (run in the library folder)
node cli/mgl.mjs render weather-forecast-strip --props '{"title":"Week ahead","subtitle":"Seven-day forecast","unit":"°","background":"#0D1B2A","card":"#162B42","ink":"#EAF2FA","accent":"#FFB347","accent2":"#5CB8FF","sunColor":"#FFC83D"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export weather-forecast-strip --as webm-alpha --props '{"title":"Week ahead","subtitle":"Seven-day forecast","unit":"°","background":"#0D1B2A","card":"#162B42","ink":"#EAF2FA","accent":"#FFB347","accent2":"#5CB8FF","sunColor":"#FFC83D"}'

React / Next.js

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

<MotionPlayer
  motion="weather-forecast-strip"
  props={{
    title: 'Week ahead',
    subtitle: 'Seven-day forecast',
    unit: '°',
    background: '#0D1B2A',
    card: '#162B42',
    ink: '#EAF2FA',
    accent: '#FFB347',
    accent2: '#5CB8FF',
    sunColor: '#FFC83D',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="weather-forecast-strip"
  props='{"title":"Week ahead","subtitle":"Seven-day forecast","unit":"°","background":"#0D1B2A","card":"#162B42","ink":"#EAF2FA","accent":"#FFB347","accent2":"#5CB8FF","sunColor":"#FFC83D"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "weather-forecast-strip",
      "props": {
        "title": "Week ahead",
        "subtitle": "Seven-day forecast",
        "unit": "°",
        "background": "#0D1B2A",
        "card": "#162B42",
        "ink": "#EAF2FA",
        "accent": "#FFB347",
        "accent2": "#5CB8FF",
        "sunColor": "#FFC83D"
      }
    }
  ]
}

Weather forecast strip props

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

PropDefaultWhat it does
title"Week ahead"headline (empty = none)
subtitle"Seven-day forecast"line under the headline (empty = none)
days[{"day":"Today","icon":"sun","hi":24,"lo":15,"precip":0},{"day":"Tue","icon":"partly","…days [{day, icon(sun|moon|partly|cloud|rain|storm|snow|fog|wind), hi, lo, label?, precip?(0-100)}] up to 8
unit"°"text after temperatures (degree sign, "C", ...)
highlightIndex0index of the highlighted card (-1 = none)
showPreciptrueshow chance of rain when a day has precip
background"#0D1B2A"page colour, or "transparent"
card"#162B42"card colour
ink"#EAF2FA"text colour (icon clouds are tinted from it)
accent"#FFB347"warm end of the temperature bar and highlight colour
accent2"#5CB8FF"cool end of the temperature bar, rain and precipitation colour
sunColor"#FFC83D"sun / moon / lightning colour
fontFamily""CSS font family (empty = Space Grotesk)
startAt6frame the first card starts
speed1animation speed multiplier

Notes & credits

Technique sources:

  • original round-3 vertical motion