Opus Motion ★ Star on GitHub

Worlds · sun-rise-set

Sun rise / sun set

Sunrise: a huge orange gradient disc rises from behind teal grass with an ease-out, grows a ring of spike rays and golden leaves pop up over a starry night. Sunset mode: stepped purple-to-peach sky bands, a cream sun with rotating dashed rays sinks behind the horizon and the sky darkens to dusk.

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

Sun rise / sun set: three frames of the animated background, start, middle and end
Sun rise / sun set — start, middle and end of the 5.0-second motion.

What Sun rise / sun set is for

Openers, "a new day" beats, endings and time-passing; a giant backlight disc behind a hero.

  • sun
  • sunrise
  • sunset
  • sky
  • dusk
  • rays
  • screenprint
  • poster
  • banded-sky
  • stepped-bands
  • rings

Details

Category
Animated worlds & backdrops
Length
5.0 s (150 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
no
Seamless loop
no
Text props
—
Colour props
background sunCore sunRim rayColor bands duskBands land
Mood
mid, nature, night
Roles
backdrop
Pairs with
V-formation flock, Blur-in title card, Handwrite-on title

Use Sun rise / sun set in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render sun-rise-set --props '{"background":"#0c1820","sunCore":"#fb8346","sunRim":"#f1643e","rayColor":"#c4573c","bands":["#8d5f88","#a76a82","#bb727d","#d08a80","#dcab8c","#f5edda"],"duskBands":["#423463","#563d6e","#6e4672","#8a5272","#a8636a","#d08a6c"],"land":["#65536e","#50425e","#3f344c"]}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export sun-rise-set --as mp4 --props '{"background":"#0c1820","sunCore":"#fb8346","sunRim":"#f1643e","rayColor":"#c4573c","bands":["#8d5f88","#a76a82","#bb727d","#d08a80","#dcab8c","#f5edda"],"duskBands":["#423463","#563d6e","#6e4672","#8a5272","#a8636a","#d08a6c"],"land":["#65536e","#50425e","#3f344c"]}'

React / Next.js

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

<MotionPlayer
  motion="sun-rise-set"
  props={{
    background: '#0c1820',
    sunCore: '#fb8346',
    sunRim: '#f1643e',
    rayColor: '#c4573c',
    bands: ['#8d5f88', '#a76a82', '#bb727d', '#d08a80', '#dcab8c', '#f5edda'],
    duskBands: ['#423463', '#563d6e', '#6e4672', '#8a5272', '#a8636a', '#d08a6c'],
    land: ['#65536e', '#50425e', '#3f344c'],
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="sun-rise-set"
  props='{"background":"#0c1820","sunCore":"#fb8346","sunRim":"#f1643e","rayColor":"#c4573c","bands":["#8d5f88","#a76a82","#bb727d","#d08a80","#dcab8c","#f5edda"],"duskBands":["#423463","#563d6e","#6e4672","#8a5272","#a8636a","#d08a6c"],"land":["#65536e","#50425e","#3f344c"]}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "sun-rise-set",
      "props": {
        "background": "#0c1820",
        "sunCore": "#fb8346",
        "sunRim": "#f1643e",
        "rayColor": "#c4573c",
        "bands": [
          "#8d5f88",
          "#a76a82",
          "#bb727d",
          "#d08a80",
          "#dcab8c",
          "#f5edda"
        ],
        "duskBands": [
          "#423463",
          "#563d6e",
          "#6e4672",
          "#8a5272",
          "#a8636a",
          "#d08a6c"
        ],
        "land": [
          "#65536e",
          "#50425e",
          "#3f344c"
        ]
      }
    }
  ]
}

Sun rise / sun set props

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

PropDefaultWhat it does
mode"rise""rise" (video15 sunrise disc) or "set" (video1 sunset descent)
background"#0c1820"night sky colour (rise mode)
sunCore"#fb8346"sun gradient centre colour (rise)
sunRim"#f1643e"sun gradient rim colour (rise)
rayColor"#c4573c"spike ray colour (rise)
rayCount70number of rays (70 rise, try 36 for set)
rayLength72ray length in u (rise) / ray length scale (set)
sunScale1sun size multiplier
riseStart6frame the sun starts rising
riseFrames45rise duration in frames (ease-out quad)
grasstrueteal grass foreground (rise)
goldentruegolden leaves pop up after the rise
moontruecrescent moon that sinks and fades as the sun rises
bands["#8d5f88","#a76a82","#bb727d","#d08a80","#dcab8c","#f5edda"]sunset sky band colours, top to horizon (set)
duskBands["#423463","#563d6e","#6e4672","#8a5272","#a8636a","#d08a6c"]the same bands at full dusk (set)
bandStyle"wobble"set mode: 'wobble' (default soft wobbly band tops) | 'thinning' (flat colour stepping into the next via thinning stripes — instant screen-print sky, no gradients)
sunRings0set mode: concentric rings around the sun disc (0 = none, 2-3 = print look)
stripes5set mode, bandStyle 'thinning': stripes per band transition (5)
land["#65536e","#50425e","#3f344c"]land layer colours far to near (set)
grain0.07film grain opacity
seed"sun"random seed

Notes & credits

Technique sources:

  • video15 0:00-0:03 sunrise-disc-rise
  • video1 0:52-0:58 sun-set-descent