Opus Motion ★ Star on GitHub

Music · lyric-on-path

Lyric on a path (spark / fuse)

An orange spark with a white-hot core drags a hairline curve across the frame and the lyric rides it: each word appears on the path, tilted to the tangent, exactly as it is sung; in the fuse variant the burning front makes words glow as it passes, then they char to ash and crumble off the line.

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

Lyric on a path (spark / fuse): three frames of the music visualizer, start, middle and end
Lyric on a path (spark / fuse) — start, middle and end of the 10.0-second motion.

What Lyric on a path (spark / fuse) is for

Text that follows a chart line, a fuse, a route or a timeline; lyric videos, countdown fuses, “descending into the data” beats.

  • lyrics
  • path
  • spark
  • fuse
  • burn
  • curve
  • karaoke
  • text on path
  • music
  • chart
  • line
  • ember
  • treatise
  • word timing

Details

Category
Music visualisers & audio graphics
Length
10.0 s (300 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
lines
Colour props
background ink accent ashColor
Mood
nature, hud
Roles
subject

Use Lyric on a path (spark / fuse) in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render lyric-on-path --props '{"lines":["Turn the city lights up one more time","Every heartbeat lands right on the line"],"background":"#0A0A0B","ink":"#EEE9DF","accent":"#FF4D12","ashColor":"#55504B"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export lyric-on-path --as webm-alpha --props '{"lines":["Turn the city lights up one more time","Every heartbeat lands right on the line"],"background":"#0A0A0B","ink":"#EEE9DF","accent":"#FF4D12","ashColor":"#55504B"}'

React / Next.js

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

<MotionPlayer
  motion="lyric-on-path"
  props={{
    lines: [
      'Turn the city lights up one more time',
      'Every heartbeat lands right on the line',
    ],
    background: '#0A0A0B',
    ink: '#EEE9DF',
    accent: '#FF4D12',
    ashColor: '#55504B',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="lyric-on-path"
  props='{"lines":["Turn the city lights up one more time","Every heartbeat lands right on the line"],"background":"#0A0A0B","ink":"#EEE9DF","accent":"#FF4D12","ashColor":"#55504B"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "lyric-on-path",
      "props": {
        "lines": [
          "Turn the city lights up one more time",
          "Every heartbeat lands right on the line"
        ],
        "background": "#0A0A0B",
        "ink": "#EEE9DF",
        "accent": "#FF4D12",
        "ashColor": "#55504B"
      }
    }
  ]
}

Lyric on a path (spark / fuse) props

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

PropDefaultWhat it does
lines["Turn the city lights up one more time","Every heartbeat lands right on the line"]plain lyric lines (used when `lyrics` is empty): timed onto the beat grid, words on eighth notes
lyrics[]timed lyrics: [{text, start, end, words?: [{text, start, end, syl?:[[a,b]]}]}] in seconds; words without times are estimated
bpm120tempo used when `beats` has no beat list
offsetSec0.3time of the first beat in seconds (aligns the grid to your song)
beats{}beat data: {bpm, offsetSec, beatsPerBar} or a list of beat times (s), or a full analysis {beats, downbeats, sections, onsets:{kick,snare,hat:[[t,strength]]}}
variant"curve"'curve' (words light as sung on a descending line) or 'fuse' (burn front ignites then chars the words)
path""custom path as normalised points 'x,y x,y …' (0..1); empty = procedural curve
background"#0A0A0B"frame colour or 'transparent'
ink"#EEE9DF"line + rested word colour
accent"#FF4D12"spark / sung word colour
ashColor"#55504B"charred word colour (fuse)
size34word size in u
labelstruetiny mono footnote ticks along the path
seed2curve shape + sputter variety

Notes & credits

Technique sources:

  • pdoom-video app/src/scenes/loss.ts + fuse.ts + _motifs.ts spark (MIT)