Opus Motion ★ Star on GitHub

HUD · target-lock

Target lock

Candidate boxes with ids and rising MATCH % appear over a scene half a second apart; four L-brackets fly in from the frame corners, close in and snap onto the target (1.4 to 1.0 scale), a lock ratchet ring fills, then a "TARGET LOCKED" banner opens from the centre with coordinates typing below. Works over a built-in crate scene, your image, or transparent as an overlay.

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

Target lock: three frames of the HUD graphic, start, middle and end
Target lock — start, middle and end of the 6.0-second motion.

What Target lock is for

Gaming edits, tech reviews ("found the bug") and product highlights on a screenshot, face or map; pairs with target-lock-box (different 45-degree style).

  • target lock
  • lock on
  • brackets
  • hud
  • acquire
  • match
  • candidates
  • sci-fi
  • tracking
  • overlay
  • gaming
  • highlight
  • banner

Details

Category
HUD & sci-fi interface graphics
Length
6.0 s (180 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
label
Colour props
background accent lockColor
Image props
src
Mood
photo, hud
Roles
accent, subject

Use Target lock in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render target-lock --props '{"label":"TARGET LOCKED","background":"#101A2C","accent":"#3CF2FF","lockColor":"#FFD23F","src":""}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export target-lock --as webm-alpha --props '{"label":"TARGET LOCKED","background":"#101A2C","accent":"#3CF2FF","lockColor":"#FFD23F","src":""}'

React / Next.js

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

<MotionPlayer
  motion="target-lock"
  props={{
    label: 'TARGET LOCKED',
    background: '#101A2C',
    accent: '#3CF2FF',
    lockColor: '#FFD23F',
    src: '',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="target-lock"
  props='{"label":"TARGET LOCKED","background":"#101A2C","accent":"#3CF2FF","lockColor":"#FFD23F","src":""}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "target-lock",
      "props": {
        "label": "TARGET LOCKED",
        "background": "#101A2C",
        "accent": "#3CF2FF",
        "lockColor": "#FFD23F",
        "src": ""
      }
    }
  ]
}

Target lock props

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

PropDefaultWhat it does
target{"x":0.56,"y":0.5,"size":220}lock target {x, y as fractions of the frame, size in px at 1080p}
candidates[{"x":0.26,"y":0.4,"size":150,"id":"ID-0412","match":38},{"x":0.76,"y":0.34,"size":130,…candidate boxes [{x, y, size, id, match}] shown 0.5 s apart; match >= 90 uses the accent colour
label"TARGET LOCKED"banner text (scramble-decoded)
coords"X 0.560 · Y 0.500 · CONF 97.4%"line typed under the banner
src""optional image (public/ path) used as the backdrop instead of the crate scene
background"#101A2C"scene colour; 'transparent' renders only the HUD for use as an overlay
accent"#3CF2FF"candidate / grid colour
lockColor"#FFD23F"bracket-lock, ratchet and banner colour
firstCandidate12frame the first candidate appears
candidateEvery15frames between candidates (15 = 0.5 s)
lockAt112frame the brackets snap on (they start 13 frames earlier)

Notes & credits

Technique sources:

  • mg-styles-15 demos/22-hud/js/hud.js brackets() / acquire() / banner() (MIT)