Opus Motion ★ Star on GitHub

Worlds · caustics-godrays

Caustics & god-rays

Underwater: a rippling caustic web at the surface, swaying light shafts and drifting motes; "pool" = full-frame scrolling caustic texture; "beam" = warm window light shaft with dust. Overlay-capable.

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

Caustics & god-rays: three frames of the animated background, start, middle and end
Caustics & god-rays — start, middle and end of the 6.0-second motion.

What Caustics & god-rays is for

Ocean / underwater openers, pool or summer textures, quiet interiors with a single light shaft; layer over footage as light.

  • water
  • underwater
  • light
  • caustics
  • godrays
  • overlay
  • ambience
  • texture
  • floor
  • glossy-floor
  • product-stage
  • rgb-split
  • chromatic
  • wave-rings
  • beat

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 lineColor accentA accentB
Mood
mid, cinematic, nature
Roles
backdrop, accent
Pairs with
Fish school + jellyfish, Deep-sea depth descent, Blur-in title card, Iridescent bubbles

Use Caustics & god-rays in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render caustics-godrays --props '{"background":"#11577E","lineColor":"#CFF3F8","accentA":"#FF4F9A","accentB":"#3FB6FF"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export caustics-godrays --as webm-alpha --props '{"background":"#11577E","lineColor":"#CFF3F8","accentA":"#FF4F9A","accentB":"#3FB6FF"}'

React / Next.js

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

<MotionPlayer
  motion="caustics-godrays"
  props={{
    background: '#11577E',
    lineColor: '#CFF3F8',
    accentA: '#FF4F9A',
    accentB: '#3FB6FF',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="caustics-godrays"
  props='{"background":"#11577E","lineColor":"#CFF3F8","accentA":"#FF4F9A","accentB":"#3FB6FF"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "caustics-godrays",
      "props": {
        "background": "#11577E",
        "lineColor": "#CFF3F8",
        "accentA": "#FF4F9A",
        "accentB": "#3FB6FF"
      }
    }
  ]
}

Caustics & god-rays props

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

PropDefaultWhat it does
mode"underwater""underwater" (surface web + god-rays), "pool" (full-frame caustic texture), "beam" (window light shaft + dust), "floor" (dark glossy floor: dancing RGB-fringed filaments, lens ring, coloured beat rings)
background"#11577E"CSS background; "transparent" = overlay (only light elements are drawn)
backdroptruepaint the procedural water / room
lineColor"#CFF3F8"caustic web line colour (pool source: #cfeff0)
rayColor""light shaft colour; empty = #E6FBFF underwater, #FFDC96 beam
rayCount8number of god-rays (underwater)
causticScale1caustic cell size multiplier
speed1animation speed multiplier
motes1dust / marine-snow density multiplier
fadeDepth0.42fraction of height the surface caustics reach before fading (underwater)
introtruepool mode: open on a wire grid that switches to caustics in 3 frames
seed1random seed
rgbSplit1floor mode: chromatic fringe strength of the filaments (0 = single colour)
lensRingtruefloor mode: ring-shaped lens caustic around the centre
waveEvents[]floor mode: frames at which a coloured ring spreads out (empty = every ~36 frames)
accentA"#FF4F9A"floor mode: ring colour near the centre
accentB"#3FB6FF"floor mode: ring colour at the outer radius

Notes & credits

Excellent calm web hero background for water / health / science brands.

Technique sources:

  • video23 0.0-14.0
  • video2 14.17-15.25
  • video14 era ambience (light-shaft-dust)