Opus Motion ★ Star on GitHub

Worlds · fog-clouds

Fog and clouds (parallax)

Three parallax layers of drifting noise-built clouds (lit white cumulus with soft grey undersides), low ground fog over dark ridges, or a wide soft mist; layer speeds run 1 : 2 : 4, blur grows toward the front and a screen-blended sun glow scatters through them.

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

Fog and clouds (parallax): three frames of the animated background, start, middle and end
Fog and clouds (parallax) — start, middle and end of the 8.0-second motion.

What Fog and clouds (parallax) is for

Skies for heroes, passing through clouds, mood and ambience; overlay-capable (`background: "transparent"`) over any scene or website hero.

  • clouds
  • cumulus
  • fog
  • mist
  • sky
  • parallax
  • atmosphere
  • ambience
  • weather
  • drift
  • overlay
  • hero background
  • feTurbulence
  • light scattering
  • ground fog
  • haze

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
yes
Seamless loop
no
Text props
—
Colour props
colors sunColor
Mood
3d, nature, night
Roles
backdrop, accent

Use Fog and clouds (parallax) in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render fog-clouds --props '{"colors":["#ffffff","#93a6cc"],"sunColor":"#fff0c2"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export fog-clouds --as webm-alpha --props '{"colors":["#ffffff","#93a6cc"],"sunColor":"#fff0c2"}'

React / Next.js

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

<MotionPlayer
  motion="fog-clouds"
  props={{colors: ['#ffffff', '#93a6cc'], sunColor: '#fff0c2'}}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="fog-clouds"
  props='{"colors":["#ffffff","#93a6cc"],"sunColor":"#fff0c2"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "fog-clouds",
      "props": {
        "colors": [
          "#ffffff",
          "#93a6cc"
        ],
        "sunColor": "#fff0c2"
      }
    }
  ]
}

Fog and clouds (parallax) props

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

PropDefaultWhat it does
style"cumulus"'cumulus' | 'fog' | 'mist'
colors["#ffffff","#93a6cc"][light, shade] cloud colours (fog / mist use the light colour only)
speed22back-layer drift in px per second at 1080p (mid layer x2, front x4)
density0.5cloud coverage 0..1
opacity1overall layer opacity multiplier
blur20edge softness in px (grows toward the front layer)
layers3number of parallax layers (1-4)
suntruescreen-blended sun scatter glow
sunColor"#fff0c2"sun glow colour
sunPos[0.78,0.2][x, y] of the sun as fractions of the frame
background"auto"'auto' (sky gradient for the style) | 'transparent' | any CSS background
ridgetruedark ridge silhouettes behind fog / mist (auto background only)
seed5noise seed

Notes & credits

Technique sources:

  • prompt corpus x23 (layered drifting clouds / ground fog, parallax, light scattering)