Opus Motion ★ Star on GitHub

FX · long-exposure-trails

Long-exposure trails

Dusk city with a road bending to the horizon: moving lights leave long glowing streaks like a long-exposure photograph — warm white headlights streaming toward the viewer and red tail-lights streaming away, each trail a tapered additive-glow line that fades toward its tail and grows with perspective, plus a brighter hero car. Overlay-capable: set background transparent (or give a src plate) and your own light paths.

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

Long-exposure trails: three frames of the visual effect, start, middle and end
Long-exposure trails — start, middle and end of the 6.0-second motion.

What Long-exposure trails is for

Night-city intros, logistics / delivery routes, "data packets" metaphors, festive lantern scenes, traffic and motion energy over any dark plate.

  • long exposure
  • light trails
  • headlights
  • tail lights
  • streak
  • night city
  • traffic
  • glow
  • dusk
  • overlay
  • time-lapse
  • routes
  • lanterns
  • additive

Details

Category
Visual effects & particles
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
background headColor tailColor
Image props
src
Mood
photo, night
Roles
accent

Use Long-exposure trails in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render long-exposure-trails --props '{"background":"#0B0D22","headColor":"#FFF1C9","tailColor":"#FF3B30","src":""}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export long-exposure-trails --as webm-alpha --props '{"background":"#0B0D22","headColor":"#FFF1C9","tailColor":"#FF3B30","src":""}'

React / Next.js

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

<MotionPlayer
  motion="long-exposure-trails"
  props={{
    background: '#0B0D22',
    headColor: '#FFF1C9',
    tailColor: '#FF3B30',
    src: '',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="long-exposure-trails"
  props='{"background":"#0B0D22","headColor":"#FFF1C9","tailColor":"#FF3B30","src":""}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "long-exposure-trails",
      "props": {
        "background": "#0B0D22",
        "headColor": "#FFF1C9",
        "tailColor": "#FF3B30",
        "src": ""
      }
    }
  ]
}

Long-exposure trails props

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

PropDefaultWhat it does
paths[{"pts":[[0.51,0.665],[0.56,0.72],[0.63,0.8],[0.72,0.9],[0.8,1]],"color":"#FF3B30","cou…light paths: {pts:[[x,y]…] (0-1 of the frame), color, count, speed (path fractions/s), offset (px), delay, perspective, reverse, hero}
trail3trail length in seconds of world time (1–4)
width4.5light core width in px at 1080p
glow14additive glow radius in px at 1080p
rate1time-lapse rate multiplier (higher = longer-looking streaks)
background"#0B0D22"plate colour, or "transparent" to overlay on a host scene
src""optional plate image in public/ (replaces the procedural dusk city)
headColor"#FFF1C9"default head-light colour (warm white)
tailColor"#FF3B30"default tail-light colour (red)
intensity1overall trail opacity 0–1.5
herotrueenlarge paths flagged hero

Notes & credits

Technique sources:

  • lemo-opuscar styles/tilt-shift/STYLE.md §8 long-exposure light; DEMO.md dawn car trail (MIT, LemoLab)