Opus Motion ★ Star on GitHub

Type · definition-card

Definition card

A dictionary entry card: big headword with a speaker icon, phonetic spelling and part-of-speech pill, a rule that draws, the definition typing on with a caret, then an italic example sentence.

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

Definition card: three frames of the text animation, start, middle and end
Definition card — start, middle and end of the 8.0-second motion.

What Definition card is for

Vocabulary and "what does X mean" explainers, glossary beats, language lessons, jargon-busting intros — pass the word, phonetic, part of speech, definition and example.

  • definition
  • dictionary
  • glossary
  • vocabulary
  • word
  • meaning
  • typewriter
  • card
  • education
  • explainer
  • lesson

Details

Category
Text animations & kinetic typography
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
word
Colour props
background ink accent card
Mood
ui
Roles
type

Use Definition card in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render definition-card --props '{"word":"Inflation","background":"#E9E1D0","ink":"#1D1B18","accent":"#C8452D","card":"#FFFDF7"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export definition-card --as webm-alpha --props '{"word":"Inflation","background":"#E9E1D0","ink":"#1D1B18","accent":"#C8452D","card":"#FFFDF7"}'

React / Next.js

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

<MotionPlayer
  motion="definition-card"
  props={{
    word: 'Inflation',
    background: '#E9E1D0',
    ink: '#1D1B18',
    accent: '#C8452D',
    card: '#FFFDF7',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="definition-card"
  props='{"word":"Inflation","background":"#E9E1D0","ink":"#1D1B18","accent":"#C8452D","card":"#FFFDF7"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "definition-card",
      "props": {
        "word": "Inflation",
        "background": "#E9E1D0",
        "ink": "#1D1B18",
        "accent": "#C8452D",
        "card": "#FFFDF7"
      }
    }
  ]
}

Definition card props

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

PropDefaultWhat it does
word"Inflation"the headword
phonetic"/ɪnˈfleɪ.ʃən/"phonetic spelling, e.g. /ˈwɜːd/
partOfSpeech"noun"noun / verb / adjective ... shown as a pill
definition"A general rise in prices over time, which means each unit of money buys a little less …the definition text (types on)
example"With inflation at 3%, a $100 basket of groceries costs $103 next year."optional example sentence (empty string hides it)
background"#E9E1D0"backdrop colour or 'transparent'
ink"#1D1B18"text colour
accent"#C8452D"pill, rule, caret and left-edge colour
card"#FFFDF7"card colour
fontFamily""optional CSS font-family for the word and example (empty = serif)
startAt0frame the card starts entering
speed1playback speed multiplier
typeSpeed1typing speed multiplier for the definition

Notes & credits

Technique sources:

  • original (round 3)