Opus Motion ★ Star on GitHub

Worlds · fish-school

Fish school + jellyfish

Underwater scene: a loose school of fish sweeps across the frame along an eased Bézier S-curve, each fish trailing at its own lag with tail wobble, depth-faded colour and gentle wander, past pulsing glowing jellyfish, swaying kelp, god-rays and drifting particles.

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

Fish school + jellyfish: three frames of the animated background, start, middle and end
Fish school + jellyfish — start, middle and end of the 7.0-second motion.

What Fish school + jellyfish is for

Ocean / nature beats, "moving together" or crowd metaphors, calm ambient backgrounds.

  • ocean
  • fish
  • underwater
  • school
  • jellyfish
  • nature

Details

Category
Animated worlds & backdrops
Length
7.0 s (210 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
no
Seamless loop
no
Text props
—
Colour props
fishColor bellyColor waterTop waterBottom
Mood
mid, nature
Roles
backdrop
Pairs with
Caustics & god-rays, Iridescent bubbles, Blur-in title card

Use Fish school + jellyfish in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render fish-school --props '{"fishColor":"#2d6c84","bellyColor":"#cfe9ee","waterTop":"#2B88A2","waterBottom":"#004768"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export fish-school --as mp4 --props '{"fishColor":"#2d6c84","bellyColor":"#cfe9ee","waterTop":"#2B88A2","waterBottom":"#004768"}'

React / Next.js

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

<MotionPlayer
  motion="fish-school"
  props={{
    fishColor: '#2d6c84',
    bellyColor: '#cfe9ee',
    waterTop: '#2B88A2',
    waterBottom: '#004768',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="fish-school"
  props='{"fishColor":"#2d6c84","bellyColor":"#cfe9ee","waterTop":"#2B88A2","waterBottom":"#004768"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "fish-school",
      "props": {
        "fishColor": "#2d6c84",
        "bellyColor": "#cfe9ee",
        "waterTop": "#2B88A2",
        "waterBottom": "#004768"
      }
    }
  ]
}

Fish school + jellyfish props

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

PropDefaultWhat it does
count42number of fish in the school
path[[-0.1,0.66],[0.3,0.06],[0.7,1],[1.1,0.34]]cubic Bézier control points [[x,y] x4] as fractions of the frame; the school travels it over the clip (ease in-out)
fishSize78fish length in u
fishColor"#2d6c84"back colour of the fish
bellyColor"#cfe9ee"belly colour of the fish
spread150half-width of the school across its path (u)
jellies5number of pulsing jellyfish
waterTop"#2B88A2"water colour at the top
waterBottom"#004768"water colour at the bottom
floortruesandy floor with swaying kelp
raystruegod-rays and surface shimmer
seed"reef"random seed

Notes & credits

Technique sources:

  • video23 0:03-0:40 sprite-swim-cycle (fish school, jellyfish)