Opus Motion ★ Star on GitHub

Image looks · light-sweep

Night light sweep

Cinematic night lighting: headlights sweep across a rain-streaked window, sodium street lamps flicker on with volumetric cones through rain, or a door opens and floods a corridor floor with light and a long shadow.

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

Night light sweep: three frames of the image effect, start, middle and end
Night light sweep — start, middle and end of the 5.0-second motion.

What Night light sweep is for

Mood beats in night scenes: a car passing, arriving somewhere at night, a reveal of someone at the door.

  • image
  • light
  • night
  • headlight
  • street-lamp
  • volumetric
  • rain
  • door
  • shadow
  • cinematic
  • reveal
  • light reveal
  • neon
  • band sweep
  • glint
  • hero reveal
  • dashboard reveal

Details

Category
Image looks & photo effects
Length
5.0 s (150 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
medium
Transparent overlay
no
Seamless loop
no
Text props
—
Colour props
color lampColor lightColor bands
Image props
src
Mood
dark, neon, photo, cinematic, nature, night
Roles
backdrop
Pairs with
Rain, Film finishing stack, Story caption box

Use Night light sweep in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render light-sweep --props '{"color":"#E8F4FF","lampColor":"#F0904F","lightColor":"#FFE6B8","bands":["#FF3DB4","#2FE6FF","#FFC93D"],"src":""}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export light-sweep --as mp4 --props '{"color":"#E8F4FF","lampColor":"#F0904F","lightColor":"#FFE6B8","bands":["#FF3DB4","#2FE6FF","#FFC93D"],"src":""}'

React / Next.js

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

<MotionPlayer
  motion="light-sweep"
  props={{
    color: '#E8F4FF',
    lampColor: '#F0904F',
    lightColor: '#FFE6B8',
    bands: ['#FF3DB4', '#2FE6FF', '#FFC93D'],
    src: '',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="light-sweep"
  props='{"color":"#E8F4FF","lampColor":"#F0904F","lightColor":"#FFE6B8","bands":["#FF3DB4","#2FE6FF","#FFC93D"],"src":""}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "light-sweep",
      "props": {
        "color": "#E8F4FF",
        "lampColor": "#F0904F",
        "lightColor": "#FFE6B8",
        "bands": [
          "#FF3DB4",
          "#2FE6FF",
          "#FFC93D"
        ],
        "src": ""
      }
    }
  ]
}

Night light sweep props

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

PropDefaultWhat it does
src""public/ image for the outside view (window / street / doorway); empty = procedural night (dawn for door)
seed1procedural plate / rain / droplet seed
mode"headlight"headlight | streetlamp | door | reveal (dim picture lit by a passing soft diagonal band of light) | neon (bands of coloured light slide across a held picture)
color"#E8F4FF"headlight beam colour
beamSpread20headlight wedge spread in degrees (20)
rain0.8rain density multiplier (0 = dry)
lamps3streetlamp: number of lamps
lampColor"#F0904F"streetlamp: sodium colour (#F0904F)
lightColor"#FFE6B8"door: light colour (#FFE6B8)
figuretruedoor: a figure steps into the doorway and casts a long shadow
push1slow push-in in %/s
grain0.08film grain amount
sweepStart10reveal: frame the sweep starts
sweepFrames39reveal: frames the sweep takes (~1.3 s = 39)
base0.07reveal: brightness of the unlit picture (0.07)
soft0.26reveal: band softness as a fraction of the sweep (0.26)
angle0.62reveal: band tilt in radians (0.62)
glint0.2reveal: glint riding the front, 0 = none (<= 0.2)
keeptruereveal: stay lit after the band passes (false = the band lights only what it covers)
bands["#FF3DB4","#2FE6FF","#FFC93D"]neon: band colours (magenta / cyan / gold)
bandDir"ltr"neon: ltr | rtl
bandFrames24neon: frames one band takes to cross
bandWidth0.16neon: band width as a fraction of the frame diagonal
palette"night"procedural plate palette when no src (dusk | night | dawn)

Notes & credits

Technique sources:

  • video16 0:56.5-0:57.6 headlight-sweep
  • video16 light-cone-volumetric + rain-overlay
  • video16 door-light-flood