Opus Motion ★ Star on GitHub

Type · fill-in-the-blank

Fill in the blank

A cloze exercise: a sentence with a pulsing blank, answer chips that pop in below, a wrong chip that is tried and bounces back with a shake and a cross, then the right chip arcs into the blank, turns green with a tick and sparkles and the feedback appears.

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

Fill in the blank: three frames of the text animation, start, middle and end
Fill in the blank — start, middle and end of the 11.0-second motion.

What Fill in the blank is for

Grammar and vocabulary exercises, language-learning reels, classroom quiz clips, ESL practice posts and "can you spot the right word?" engagement videos — pass the sentence with ___ for the blank, the options and the answer.

  • fill in the blank
  • cloze
  • quiz
  • grammar
  • language
  • esl
  • worksheet
  • exercise
  • vocabulary
  • education
  • school
  • answer
  • sentence
  • learning
  • test

Details

Category
Text animations & kinetic typography
Length
11.0 s (330 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
—
Colour props
background ink accent card correctColor wrongColor
Mood
playful
Roles
type, accent

Use Fill in the blank in Remotion, React or HTML

Remotion project

terminal
# copy this motion into your Remotion project
node cli/mgl.mjs add fill-in-the-blank --to ../my-app/src

# render an mp4 (run in the library folder)
node cli/mgl.mjs render fill-in-the-blank --props '{"background":"#EAF2FF","ink":"#1D2440","accent":"#4C6FFF","card":"#FFFFFF","correctColor":"#1FA463","wrongColor":"#E5484D"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export fill-in-the-blank --as webm-alpha --props '{"background":"#EAF2FF","ink":"#1D2440","accent":"#4C6FFF","card":"#FFFFFF","correctColor":"#1FA463","wrongColor":"#E5484D"}'

React / Next.js

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

<MotionPlayer
  motion="fill-in-the-blank"
  props={{
    background: '#EAF2FF',
    ink: '#1D2440',
    accent: '#4C6FFF',
    card: '#FFFFFF',
    correctColor: '#1FA463',
    wrongColor: '#E5484D',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="fill-in-the-blank"
  props='{"background":"#EAF2FF","ink":"#1D2440","accent":"#4C6FFF","card":"#FFFFFF","correctColor":"#1FA463","wrongColor":"#E5484D"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "fill-in-the-blank",
      "props": {
        "background": "#EAF2FF",
        "ink": "#1D2440",
        "accent": "#4C6FFF",
        "card": "#FFFFFF",
        "correctColor": "#1FA463",
        "wrongColor": "#E5484D"
      }
    }
  ]
}

Fill in the blank props

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

PropDefaultWhat it does
sentence"The cat sat on the ___ all day."the sentence; write ___ (3 underscores) where the blank goes
options["mat","sky","cloud"]answer chips shown below the sentence
answerIndex0index (0-based) of the correct option
tryWrongFirsttruetry a wrong option first (shake + cross) before the correct one lands
prompt"Fill in the blank"label pill above the sentence
correctText"Correct!"headline of the success banner
wrongText"Not quite - try again"message while the wrong option is in the blank
explanation"A cat can sit on a mat, but not on the sky."optional one-line explanation under the success banner (empty hides it)
background"#EAF2FF"backdrop colour or 'transparent'
ink"#1D2440"sentence text colour
accent"#4C6FFF"chip and blank colour
card"#FFFFFF"sentence card colour
correctColor"#1FA463"success colour
wrongColor"#E5484D"wrong-answer colour
fontFamily""optional CSS font-family for the sentence and chips (empty = grotesk)
startAt0frame the exercise starts
speed1playback speed multiplier

Notes & credits

Technique sources:

  • original (round 3)