Opus Motion ★ Star on GitHub

FX · beat-punch-zoom

Beat punch zoom

Music-synced camera kick: the whole frame punches a few percent toward a chosen point on every accent (ticks, hits, slams at different amplitudes, summed and capped) and relaxes in ~5 frames. Demo: a candy sunburst stage where a toy star squashes on each slam with a star-ring-lines burst; or feed any image with src.

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

Beat punch zoom: three frames of the visual effect, start, middle and end
Beat punch zoom — start, middle and end of the 6.0-second motion.

What Beat punch zoom is for

Universal music-energy layer for promos, recaps and social cuts; wrap any footage, image or composition in beat punches.

  • beat
  • punch
  • zoom
  • camera
  • music
  • sync
  • rhythm
  • game-show
  • kick
  • energy
  • accent
  • bpm
  • social
  • promo

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
no
Seamless loop
no
Text props
word
Colour props
hue background
Image props
src
Mood
photo, nature
Roles
subject

Use Beat punch zoom in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render beat-punch-zoom --props '{"word":"Perfect!","hue":"#3FB8AF","background":"#26264A","src":""}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export beat-punch-zoom --as mp4 --props '{"word":"Perfect!","hue":"#3FB8AF","background":"#26264A","src":""}'

React / Next.js

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

<MotionPlayer
  motion="beat-punch-zoom"
  props={{word: 'Perfect!', hue: '#3FB8AF', background: '#26264A', src: ''}}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="beat-punch-zoom"
  props='{"word":"Perfect!","hue":"#3FB8AF","background":"#26264A","src":""}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "beat-punch-zoom",
      "props": {
        "word": "Perfect!",
        "hue": "#3FB8AF",
        "background": "#26264A",
        "src": ""
      }
    }
  ]
}

Beat punch zoom props

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

PropDefaultWhat it does
bpm150tempo of the accent grid
pattern"S.t.h.t."one char per eighth note, looped: 'S' slam, 'h' hit, 't' tick, '.' rest
tick0.008tick punch amplitude
hit0.02hit punch amplitude
slam0.045slam punch amplitude
cap0.06cap on summed simultaneous punches (frame edges never show)
originX0.5punch origin x (0..1 of width)
originY0.5punch origin y (0..1 of height)
src""optional image (public/ path or URL) that receives the punches instead of the demo stage
overlayDemotruedraw the candy demo stage when src is empty
hue"#3FB8AF"demo stage hue
word"Perfect!"demo judgement word
background"#26264A"colour behind everything

Notes & credits

Technique sources:

  • lemo-opuscar styles/game-show (MIT, LemoLab) — demo/main_v1.js punch(), main_b.js camera; also used by halftone-dossier