Opus Motion ★ Star on GitHub

Camera · orbit-parallax

Orbit parallax

2.5D camera orbit around a cut-out subject: depth layers slide against each other while the subject turns slightly.

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

Orbit parallax: three frames of the camera effect, start, middle and end
Orbit parallax — start, middle and end of the 5.0-second motion.

What Orbit parallax is for

Bringing a still product, person or character photo to life; hero images and portfolio shots; photo-to-3D-feel loops.

  • orbit
  • parallax
  • 2.5d
  • depth
  • camera
  • cutout
  • hero
  • photo

Details

Category
Camera moves & lens effects
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
palette accent background
Image props
src
Mood
photo
Roles
subject

Use Orbit parallax in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render orbit-parallax --props '{"palette":["#ff7a59","#6a4cff","#14b8a6","#ffd166"],"accent":"#ffd166","background":"#000000","src":""}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export orbit-parallax --as mp4 --props '{"palette":["#ff7a59","#6a4cff","#14b8a6","#ffd166"],"accent":"#ffd166","background":"#000000","src":""}'

React / Next.js

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

<MotionPlayer
  motion="orbit-parallax"
  props={{
    palette: ['#ff7a59', '#6a4cff', '#14b8a6', '#ffd166'],
    accent: '#ffd166',
    background: '#000000',
    src: '',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="orbit-parallax"
  props='{"palette":["#ff7a59","#6a4cff","#14b8a6","#ffd166"],"accent":"#ffd166","background":"#000000","src":""}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "orbit-parallax",
      "props": {
        "palette": [
          "#ff7a59",
          "#6a4cff",
          "#14b8a6",
          "#ffd166"
        ],
        "accent": "#ffd166",
        "background": "#000000",
        "src": ""
      }
    }
  ]
}

Orbit parallax props

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

PropDefaultWhat it does
src""background picture (empty = procedural layered scene)
subjectSrc""transparent PNG cut-out subject (empty = procedural figure)
orbitDeg14subject turn at the extremes of the orbit, degrees
cycles1full left-right-left orbits over the clip (loops seamlessly)
phase0starting phase in radians
depth1parallax strength multiplier
tilt1vertical bob multiplier
subjectScale1subject size multiplier
foregroundtrueprocedural foreground layer (when no src)
shadowtruecontact shadow under the subject
palette["#ff7a59","#6a4cff","#14b8a6","#ffd166"]procedural scene colours
accent"#ffd166"procedural subject accent
background"#000000"base colour

Notes & credits

Technique sources:

  • camera-vocabulary: orbit / 2.5D parallax