
Word slam hook (one word per beat)
@opus-motion-library/word-slam-hook
From Opus Motion Library
A hook phrase plays one giant word per beat: each word slams in full-frame in heavy variable grotesk over type-specimen guides (baseline / cap-height hairlines, deadpan mono labels), with a two-frame invert flash, screen shake and punch zoom on every hit; four escalation variants up to a strobing maximal pass, and the last word can roll into a giant number.
Install
node cli/mgl.mjs add word-slam-hook --to <your-project>/srcWhen to use
- Good for
- Chorus hooks, promo taglines, sports and hype edits — the “one word per beat” staple; set `variant` 1→4 to escalate each repeat.
Specs
- Length
- 180f · 6s
- Length type
- Fixed
- FPS
- 30
- License
- MIT
Props (14)
wordsarray= ["TURN","IT","UP","ONE","MORE","TIME"]the hook, one entry per slam
variantnumber= 11 clean bone-on-ink · 2 ink-on-orange, heavier · 3 breakdown (hairline, tiny, slow) · 4 maximal (strobing field, echo outlines, re-slams every beat)
everyBeatsnumber= 1beats per word (1 = every beat, 2 = every other)
startBeatnumber= 0beat index of the first slam
bpmnumber= 120tempo used when `beats` has no beat list
offsetSecnumber= 0.15time of the first beat in seconds (aligns the grid to your song)
beatsobject= {}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]]}}
inkstring= "#EEE9DF"type colour
fieldstring= "#0A0A0B"background colour
accentstring= "#FF4D12"signal colour (finale number, variant 2 field)
guidesboolean= truetype-specimen hairlines + mono labels
invertFramesnumber= 2frames of inverted flash on each slam (0 = off)
shakenumber= 14screen shake in px per slam
finaleunknown= nullroll the last word into a number: {value, from, decimals} or null