Opus Motion ★ Star on GitHub

FX · impact-frame

Impact frame (flash, shake, punch)

On each hit: one inverted frame, one white frame, a decaying camera shake, a 1.06 to 1 zoom punch, a chromatic RGB split and a burst of speed lines with a shock ring; the default scene slams one giant word per hit (READY / SET / GO) on a new colour with an anticipation ring closing before every beat.

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

Impact frame (flash, shake, punch): three frames of the visual effect, start, middle and end
Impact frame (flash, shake, punch) — start, middle and end of the 4.7-second motion.

What Impact frame (flash, shake, punch) is for

Beat drops, fight and comedy shorts, stat slams, game trailers. Set `scene: false` and `background: "transparent"` to lay the flash + speed lines over other layers; pairs with comic-burst and speed-lines.

  • impact
  • hit
  • shake
  • flash
  • invert
  • punch
  • zoom
  • chromatic
  • beat
  • drop
  • slam
  • comic
  • fight
  • trailer
  • speed lines
  • overlay
  • camera shake
  • countdown

Details

Category
Visual effects & particles
Length
4.7 s (140 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
—
Colour props
colors inkColor accent
Mood
comic
Roles
accent

Use Impact frame (flash, shake, punch) in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render impact-frame --props '{"colors":["#f4efe4","#ffd23f","#15151c"],"inkColor":"#15151c","accent":"#ff3b30"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export impact-frame --as webm-alpha --props '{"colors":["#f4efe4","#ffd23f","#15151c"],"inkColor":"#15151c","accent":"#ff3b30"}'

React / Next.js

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

<MotionPlayer
  motion="impact-frame"
  props={{
    colors: ['#f4efe4', '#ffd23f', '#15151c'],
    inkColor: '#15151c',
    accent: '#ff3b30',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="impact-frame"
  props='{"colors":["#f4efe4","#ffd23f","#15151c"],"inkColor":"#15151c","accent":"#ff3b30"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "impact-frame",
      "props": {
        "colors": [
          "#f4efe4",
          "#ffd23f",
          "#15151c"
        ],
        "inkColor": "#15151c",
        "accent": "#ff3b30"
      }
    }
  ]
}

Impact frame (flash, shake, punch) props

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

PropDefaultWhat it does
scenetruedraw the built-in word scene (false = effect layers only, for overlaying)
at[30,66,102]frames of the impacts
words["READY","SET","GO!"]one giant word per impact
colors["#f4efe4","#ffd23f","#15151c"]background colour per impact (cycled)
inkColor"#15151c"word colour on light backgrounds
accent"#ff3b30"speed-line / ring / shadow colour
strength1overall hit strength (1 = shake 2% of the frame, flash, 1.06 punch)
ramp0.35extra strength added per successive hit
flash"both"'invert' | 'white' | 'both' | 'none'
linestruedraw the speed-line burst
chromatruechromatic RGB split on the hit
background"transparent"backdrop when `scene` is off ("transparent" to overlay)

Notes & credits

Technique sources:

  • prompt corpus x18 (hit: inverted/white frames, decaying shake, zoom punch, chroma split)