Opus Motion ★ Star on GitHub

Textures · bokeh-drift

Bokeh drift

Soft depth-of-field light discs in three depth bands drifting through the frame with a gentle twinkle; circle or hexagon bokeh.

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

Bokeh drift: three frames of the animated texture, start, middle and end
Bokeh drift — start, middle and end of the 6.0-second motion.

What Bokeh drift is for

Dreamy or festive backgrounds behind titles, night-city and party moods, wedding / event / luxury intros; overlay on footage with a transparent background.

  • bokeh
  • lights
  • depth of field
  • dreamy
  • background
  • texture
  • overlay
  • particles
  • night
  • party
  • loop

Details

Category
Animated textures & surface looks
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
colors background
Mood
3d, playful, night
Roles
backdrop, accent

Use Bokeh drift in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render bokeh-drift --props '{"colors":["#ffd9a0","#ff9ec7","#9ad7ff","#ffffff"],"background":"#0b0a1c"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export bokeh-drift --as webm-alpha --props '{"colors":["#ffd9a0","#ff9ec7","#9ad7ff","#ffffff"],"background":"#0b0a1c"}'

React / Next.js

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

<MotionPlayer
  motion="bokeh-drift"
  props={{
    colors: ['#ffd9a0', '#ff9ec7', '#9ad7ff', '#ffffff'],
    background: '#0b0a1c',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="bokeh-drift"
  props='{"colors":["#ffd9a0","#ff9ec7","#9ad7ff","#ffffff"],"background":"#0b0a1c"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "bokeh-drift",
      "props": {
        "colors": [
          "#ffd9a0",
          "#ff9ec7",
          "#9ad7ff",
          "#ffffff"
        ],
        "background": "#0b0a1c"
      }
    }
  ]
}

Bokeh drift props

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

PropDefaultWhat it does
colors["#ffd9a0","#ff9ec7","#9ad7ff","#ffffff"]light colours picked per disc
count46number of discs (max 160)
direction70drift direction in degrees (0 = right, 90 = up, 180 = left)
speed0.6drift distance over the clip (loops by wrap-around)
size1disc size multiplier
softness3.5blur of the discs in u (higher = more defocused)
ring0.6bright rim on each disc (0 = flat disc, 1 = strong lens ring)
twinkle0.5brightness flicker amount (0..1)
shape"circle"circle | hex (aperture blades)
blend"screen"screen | normal | plus-lighter
seed3layout seed
background"#0b0a1c"CSS background; "transparent" = overlay on footage

Notes & credits

Technique sources:

  • texture-vocabulary: bokeh light backgrounds