Opus Motion ★ Star on GitHub

Type · story-caption-box

Story caption box

Double-ruled black narrative caption box under a letterboxed scene (RPG-style typing), or a yellow comic time-stamp plate ("7:00 AM RISE AND SHINE").

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

Story caption box: three frames of the text animation, start, middle and end
Story caption box — start, middle and end of the 7.0-second motion.

What Story caption box is for

Story narration, game cutscene text, timeline time-stamps and location/time chyrons.

  • caption
  • subtitle
  • story
  • chyron
  • timestamp
  • comic
  • rpg
  • dialogue
  • speech bubble
  • ribbon
  • banner
  • paper strip
  • fantasy

Details

Category
Text animations & kinetic typography
Length
7.0 s (210 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
items
Colour props
textColor boxColor borderColor plateColor inkColor accent
Image props
src
Mood
dark, paper, comic, cinematic, editorial
Roles
type
Pairs with
Ken Burns push / pull / tilt, Film finishing stack, Night light sweep, Pixelate + Bayer dither look

Use Story caption box in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render story-caption-box --props '{"items":[],"textColor":"#ffffff","boxColor":"#000000","borderColor":"#8a8a8a","plateColor":"#ffd93a","inkColor":"#1b1030","accent":"#D8C28E","src":""}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export story-caption-box --as webm-alpha --props '{"items":[],"textColor":"#ffffff","boxColor":"#000000","borderColor":"#8a8a8a","plateColor":"#ffd93a","inkColor":"#1b1030","accent":"#D8C28E","src":""}'

React / Next.js

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

<MotionPlayer
  motion="story-caption-box"
  props={{
    items: [],
    textColor: '#ffffff',
    boxColor: '#000000',
    borderColor: '#8a8a8a',
    plateColor: '#ffd93a',
    inkColor: '#1b1030',
    accent: '#D8C28E',
    src: '',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="story-caption-box"
  props='{"items":[],"textColor":"#ffffff","boxColor":"#000000","borderColor":"#8a8a8a","plateColor":"#ffd93a","inkColor":"#1b1030","accent":"#D8C28E","src":""}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "story-caption-box",
      "props": {
        "items": [],
        "textColor": "#ffffff",
        "boxColor": "#000000",
        "borderColor": "#8a8a8a",
        "plateColor": "#ffd93a",
        "inkColor": "#1b1030",
        "accent": "#D8C28E",
        "src": ""
      }
    }
  ]
}

Story caption box props

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

PropDefaultWhat it does
variant"box"box (video21 narrative box) | plate (video12 time-stamp plate) | ornate (RPG dialogue: gold border, corner ornaments, name plate) | bubble (speech bubble, tail to speaker) | banderole (parchment ribbon unfurls) | paper-strip (cut-paper subtitle strip)
items[][{text, tag?, name?, sub?, speaker?:[x,y]}] shown in order; plate uses tag as the time; ornate name = name plate; bubble sub = second language line, speaker = tail target as frame fractions; [] = built-in sample
framesPerItem66frames each caption stays
startFrame8frame the first caption appears
reveal"type"box: type (RPG typing + ▼) | instant (video21) | fade
charsPerSecond36typing speed for reveal = type
letterboxtruebox: black cinema bars top and bottom
textColor"#ffffff"
boxColor"#000000"
borderColor"#8a8a8a"box outline + inner rule colour (video21 #616161 on 1080p)
plateColor"#ffd93a"plate fill
inkColor"#1b1030"plate border / shadow / text colour
size34caption text size in px at 1080p (plate scales with it)
backdrop"auto"auto (aurora pixel night for box, comic room for plate) | any backdrop kind
src""optional public/ image as the scene
accent"#D8C28E"ornate: gold border / ornament / name colour
paper""ornate/bubble/paper-strip: fill or text colour of the paper (empty = per-variant default)
ink""bubble/paper-strip/banderole: outline + text ink (empty = per-variant default)

Notes & credits

Technique sources:

  • video21 0:17.2-0:18.2
  • video12 0:02-1:30
  • lemo-opuscar styles hd-2d, spy-titles, stained-glass (MIT, LemoLab)