Opus Motion ★ Star on GitHub

UI · keystroke-hud

Keystroke HUD

KeyCastr-style frosted-glass key caps (shift, cmd, a letter, return, esc ...) pop in at the bottom as each shortcut is pressed, the last key dips like a real press, the combo holds about a second, stacks beside the next one and fades. Over a soft demo editor by default; backdrop none = transparent overlay.

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

Keystroke HUD: three frames of the UI animation, start, middle and end
Keystroke HUD — start, middle and end of the 8.0-second motion.

What Keystroke HUD is for

Tutorials, dev-tool and productivity-app demos, screen recordings that need the shortcuts shown; lay over a real recording with backdrop none.

  • keystroke
  • keycastr
  • keyboard
  • shortcut
  • key caps
  • hotkey
  • tutorial
  • screencast
  • frosted glass
  • glass
  • hud
  • overlay
  • dev tools
  • productivity
  • macos
  • command
  • living-screencast

Details

Category
UI & product mockup animations
Length
8.0 s (240 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
—
Colour props
ink accent
Mood
hud, playful
Roles
accent, subject

Use Keystroke HUD in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render keystroke-hud --props '{"ink":"#1D1D26","accent":"#7048E8"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export keystroke-hud --as webm-alpha --props '{"ink":"#1D1D26","accent":"#7048E8"}'

React / Next.js

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

<MotionPlayer
  motion="keystroke-hud"
  props={{ink: '#1D1D26', accent: '#7048E8'}}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="keystroke-hud"
  props='{"ink":"#1D1D26","accent":"#7048E8"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "keystroke-hud",
      "props": {
        "ink": "#1D1D26",
        "accent": "#7048E8"
      }
    }
  ]
}

Keystroke HUD props

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

PropDefaultWhat it does
keys[{"t":0.7,"combo":"⌘ K"},{"t":2.2,"combo":"⇧ ⌘ M"},{"t":3.8,"combo":"⌘ C"},{"t":4.3,"co…array of {t seconds, combo}: tokens separated by space or +, e.g. "⇧ ⌘ M", "cmd+shift+p", "ctrl alt delete", "esc"
hold1seconds a combo stays fully visible
size1.3key cap size multiplier
position"bottom"bottom | top
glass"rgba(255,255,255,0.7)"cap fill (rgba) — frosted glass
ink"#1D1D26"glyph colour
backdrop"demo"demo = soft editor mock behind; none = transparent overlay
accent"#7048E8"reserved accent colour
seed4demo backdrop seed
fileName"main.ts"file name shown beside the ghost code lines

Notes & credits

Technique sources:

  • lemo-opuscar styles/living-screencast STYLE.md §4 + demo/main.js HUD (MIT, LemoLab) — cap 4 % H, radius 8 px, rgba(255,255,255,.7) + blur 12, pop .12 s, hold ~1 s