Opus Motion ★ Star on GitHub

Worlds · city-rooftops-rain-window

City rooftops rain window

A rainy window over a defocused city: blurred rooftops with lit windows, soft bokeh lights, thin rain outside, and fogged glass with clinging beads and larger drops that slide down leaving trails; loops seamlessly, night / dusk / dawn / day palettes and a custom light colour list.

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

City rooftops rain window: three frames of the animated background, start, middle and end
City rooftops rain window — start, middle and end of the 8.0-second motion.

What City rooftops rain window is for

Moody lo-fi / study-beats / podcast backdrops, melancholy or cosy titles, noir and thriller scenes, weather and "rainy day" content, city-life brand heroes; add a title or put your own UI over the glass.

  • rain
  • window
  • city
  • night
  • bokeh
  • rooftops
  • raindrops
  • lo-fi
  • moody
  • cozy
  • noir
  • loop
  • backdrop
  • weather
  • urban
  • glass
  • condensation

Details

Category
Animated worlds & backdrops
Length
8.0 s (240 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
no
Seamless loop
yes
Text props
title subtitle
Colour props
lights
Mood
dark, nature, night
Roles
backdrop

Use City rooftops rain window in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render city-rooftops-rain-window --props '{"title":"","subtitle":"","lights":["#FFB347","#FF6B6B","#6EC1FF","#FFE08A"]}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export city-rooftops-rain-window --as mp4 --props '{"title":"","subtitle":"","lights":["#FFB347","#FF6B6B","#6EC1FF","#FFE08A"]}'

React / Next.js

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

<MotionPlayer
  motion="city-rooftops-rain-window"
  props={{
    title: '',
    subtitle: '',
    lights: ['#FFB347', '#FF6B6B', '#6EC1FF', '#FFE08A'],
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="city-rooftops-rain-window"
  props='{"title":"","subtitle":"","lights":["#FFB347","#FF6B6B","#6EC1FF","#FFE08A"]}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "city-rooftops-rain-window",
      "props": {
        "title": "",
        "subtitle": "",
        "lights": [
          "#FFB347",
          "#FF6B6B",
          "#6EC1FF",
          "#FFE08A"
        ]
      }
    }
  ]
}

City rooftops rain window props

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

PropDefaultWhat it does
timeOfDay"night""dawn" | "day" | "dusk" | "night" – sky and light palette preset
skyTop""override the top sky colour (hex); empty = from timeOfDay
skyBottom""override the horizon sky colour (hex); empty = from timeOfDay
lights["#FFB347","#FF6B6B","#6EC1FF","#FFE08A"]city light / lit-window / bokeh colours (hex list)
rain1rain streaks outside the glass (0 = none)
drops1amount of water drops on the glass (0 = clean glass)
fog1condensation haze on the glass (0 = none)
blur1defocus of the city behind the glass (0 = sharp)
frametruedark window frame around the edges
speed1animation speed; quantised to whole cycles per loop so the clip loops seamlessly (0 = frozen)
density1multiplier for how many particles / elements are drawn
seed9random seed (changes the layout, not the look)
title""optional headline over the scene (empty = none)
subtitle""optional small line under the title (empty = none)
fontFamily"serif"font role ("serif", "display", "sans", "grotesk", "hand", "mono") or any CSS family for title / subtitle
ink""title / subtitle colour; empty = from timeOfDay
titlePosition"center""center" | "top" | "bottom"
titleSize1title size multiplier

Notes & credits

Technique sources:

  • original — round 3 nature backdrops