Opus Motion ★ Star on GitHub

Worlds · ocean-waves-layers

Ocean waves layers

Stylised flat-vector ocean: a sun or moon over a hazy horizon, 3-9 layered waves heaving and sliding on whole-cycle sine sums with foam dashes on the front crests and a glittering sun path; loops seamlessly, palette from dawn / day / dusk / night.

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

Ocean waves layers: three frames of the animated background, start, middle and end
Ocean waves layers — start, middle and end of the 8.0-second motion.

What Ocean waves layers is for

A calm looping seascape behind titles, travel / holiday / wellness / meditation scenes, podcast or lyric backdrops; set timeOfDay or your brand colours, add a title, or let it run empty under your own HTML.

  • ocean
  • sea
  • waves
  • water
  • beach
  • sunset
  • seascape
  • loop
  • backdrop
  • nature
  • calm
  • travel
  • wellness
  • landscape
  • horizon

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
—
Mood
mid, nature, night
Roles
backdrop

Use Ocean waves layers in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render ocean-waves-layers --props '{"title":"","subtitle":""}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export ocean-waves-layers --as mp4 --props '{"title":"","subtitle":""}'

React / Next.js

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

<MotionPlayer
  motion="ocean-waves-layers"
  props={{title: '', subtitle: ''}}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="ocean-waves-layers"
  props='{"title":"","subtitle":""}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "ocean-waves-layers",
      "props": {
        "title": "",
        "subtitle": ""
      }
    }
  ]
}

Ocean waves layers props

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

PropDefaultWhat it does
timeOfDay"dusk""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
accent""override the sun / moon / glow colour (hex); empty = from timeOfDay
waterColor""nearest (deepest) water colour; the far water blends toward the horizon sky; empty = from the sky
layers6number of wave layers (2-9)
waveHeight1wave amplitude multiplier
horizon0.46horizon height as a fraction of the frame height (0.3-0.65)
sunX0.5sun / moon horizontal position, 0 (left) – 1 (right)
sunSize1sun / moon size multiplier
foamtruedashed foam lines along the front crests
glintstrueglittering reflection of the sun on the water
speed1animation speed; quantised to whole cycles per loop so the clip loops seamlessly (0 = frozen)
density1multiplier for how many particles / elements are drawn
seed1random 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"top""center" | "top" | "bottom"
titleSize1title size multiplier

Notes & credits

Technique sources:

  • original — round 3 nature backdrops