Opus Motion ★ Star on GitHub

Type · hanazi-caption

Hanazi caption

A fat rounded variety-show caption made of five stacked layers (offset extrusion, coloured outer stroke, white stroke, gradient fill, top gloss) pops in character by character on a damped spring with a slight drop and rotation, then wiggles, bobs and breathes before popping out; a small handwritten aside and sparkles ride along.

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

Hanazi caption: three frames of the text animation, start, middle and end
Hanazi caption — start, middle and end of the 5.0-second motion.

What Hanazi caption is for

Social packaging (Douyin / Bilibili / Reels / TikTok), vlogs, interviews and reaction moments: drop emotional captions on top of footage.

  • caption
  • hanazi
  • 花字
  • variety show
  • reaction
  • pop
  • spring
  • sticker
  • social
  • tiktok
  • reels
  • douyin
  • vlog
  • kinetic
  • rounded
  • outline
  • extrude
  • title

Details

Category
Text animations & kinetic typography
Length
5.0 s (150 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
no
Seamless loop
no
Text props
text
Colour props
background
Image props
src
Mood
paper, 3d, playful, editorial
Roles
type

Use Hanazi caption in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render hanazi-caption --props '{"text":"SO HAPPY!","background":"#7fd3ff","src":""}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export hanazi-caption --as mp4 --props '{"text":"SO HAPPY!","background":"#7fd3ff","src":""}'

React / Next.js

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

<MotionPlayer
  motion="hanazi-caption"
  props={{text: 'SO HAPPY!', background: '#7fd3ff', src: ''}}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="hanazi-caption"
  props='{"text":"SO HAPPY!","background":"#7fd3ff","src":""}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "hanazi-caption",
      "props": {
        "text": "SO HAPPY!",
        "background": "#7fd3ff",
        "src": ""
      }
    }
  ]
}

Hanazi caption props

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

PropDefaultWhat it does
text"SO HAPPY!"the caption (Latin or CJK)
preset"joy"joy | shock | aside | question | bye: colours, font and skew
aside"(quietly) soaking up the sun..."small handwritten line under it (empty = none)
at8frame the first character pops
out138frame the pop-out starts (0.17 s)
stagger2frames between characters
wiggle1.8hold wiggle in degrees (1.15 Hz)
bob3hold bob in px at 1080
sparklestruetwinkling sparkles around it
src""optional photo/video frame (public/) to caption over; empty = demo sky
background"#7fd3ff"backdrop colour behind the demo sky

Notes & credits

Technique sources:

  • mg-styles-15 demos/18-hanazi HZ, charXf, driveHZ, spring (MIT)
  • video 18-hanazi 0.2-0.5 s, 2.57 s, 6.0 s, 8.1 s, 8.9 s