Opus Motion ★ Star on GitHub

Worlds · rain

Rain

Night street in the rain: 3 parallax layers of slanted streaks, lamp-lit cone, ground ripples; optional glass droplets and trickles. Works as a transparent overlay.

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

Rain: three frames of the animated background, start, middle and end
Rain — start, middle and end of the 6.0-second motion.

What Rain is for

Moody/rainy ambience under any scene; set background "transparent" to lay rain over footage, glass: true for a window POV.

  • weather
  • rain
  • night
  • overlay
  • ambience
  • particles
  • wet street
  • reflection
  • neon
  • neon-noir
  • puddles
  • dabs

Details

Category
Animated worlds & backdrops
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
—
Colour props
background color lampColor reflectionColors
Mood
dark, neon, nature, night
Roles
backdrop, accent
Pairs with
Night light sweep, City skyline (window flicker, dusk to night), Lightning flash relight, Story caption box

Use Rain in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render rain --props '{"background":"#060D16","color":"#C8D6E5","lampColor":"#F0904F","reflectionColors":["#4FB0F0","#F05FA0","#F0C44F"]}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export rain --as webm-alpha --props '{"background":"#060D16","color":"#C8D6E5","lampColor":"#F0904F","reflectionColors":["#4FB0F0","#F05FA0","#F0C44F"]}'

React / Next.js

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

<MotionPlayer
  motion="rain"
  props={{
    background: '#060D16',
    color: '#C8D6E5',
    lampColor: '#F0904F',
    reflectionColors: ['#4FB0F0', '#F05FA0', '#F0C44F'],
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="rain"
  props='{"background":"#060D16","color":"#C8D6E5","lampColor":"#F0904F","reflectionColors":["#4FB0F0","#F05FA0","#F0C44F"]}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "rain",
      "props": {
        "background": "#060D16",
        "color": "#C8D6E5",
        "lampColor": "#F0904F",
        "reflectionColors": [
          "#4FB0F0",
          "#F05FA0",
          "#F0C44F"
        ]
      }
    }
  ]
}

Rain props

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

PropDefaultWhat it does
background"#060D16"CSS background; "transparent" = overlay mode (no painted street)
backdroptruepaint the procedural night street (sky, blocks, wet road, lamp)
color"#C8D6E5"streak / ripple colour
density1streak + ripple count multiplier (1 = 150/300/600 per 1080p frame)
speed1fall speed multiplier (1 = 2600/1800/1200 px/s)
angle8degrees from vertical; positive falls to the right
layers31-3 parallax layers (near layer always kept)
ripplestrueexpanding ripple ellipses on the ground band
groundY0.64fraction of height where the ground / ripple band starts
glassfalsewindow-glass POV: droplets with highlights, slow trickles, backdrop blurred
glassDrops40number of static droplets per 1080p frame
lamptruestreet lamp with volumetric cone that lights the streaks
lampColor"#F0904F"sodium lamp colour
seed1random seed
reflection"none"wet-ground reflection of the lights: none | streaks (neon-noir: blurred flipped streaks + ripple bands) | dabs (painterly stacked knife dabs, shimmering on twos)
reflectionColors["#4FB0F0","#F05FA0","#F0C44F"]colours of the extra reflected neon lights (each adds one column)
reflectionAlpha1reflection strength multiplier

Notes & credits

Technique sources:

  • video1 34.9-41.7
  • video14 109.75-115.2
  • video16 46.0-52.2, 75.9-80.1