Opus Motion ★ Star on GitHub

Type · word-translation-pair

Word translation pair

A language lesson: a word in the first language rolls away letter by letter while its translation rolls in, the language chips swap highlight, and a pronunciation line with a speaker icon sweeps in. Cycles through any number of word pairs.

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

Word translation pair: three frames of the text animation, start, middle and end
Word translation pair — start, middle and end of the 12.7-second motion.

What Word translation pair is for

Language-learning reels, vocabulary-of-the-day posts, travel phrase videos, bilingual kids' content and app promos — pass your own pairs (word, translation, pronunciation) and the two language names.

  • translation
  • language
  • vocabulary
  • word
  • pronunciation
  • bilingual
  • learning
  • phrase
  • spanish
  • esl
  • education
  • morph
  • kinetic
  • lesson
  • travel

Details

Category
Text animations & kinetic typography
Length
12.7 s (380 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 accent2
Mood
—
Roles
type

Use Word translation pair in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render word-translation-pair --props '{"background":"#16213E","ink":"#F4F1E8","accent":"#FF8A5B","accent2":"#5BD1D7"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export word-translation-pair --as webm-alpha --props '{"background":"#16213E","ink":"#F4F1E8","accent":"#FF8A5B","accent2":"#5BD1D7"}'

React / Next.js

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

<MotionPlayer
  motion="word-translation-pair"
  props={{
    background: '#16213E',
    ink: '#F4F1E8',
    accent: '#FF8A5B',
    accent2: '#5BD1D7',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="word-translation-pair"
  props='{"background":"#16213E","ink":"#F4F1E8","accent":"#FF8A5B","accent2":"#5BD1D7"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "word-translation-pair",
      "props": {
        "background": "#16213E",
        "ink": "#F4F1E8",
        "accent": "#FF8A5B",
        "accent2": "#5BD1D7"
      }
    }
  ]
}

Word translation pair props

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

PropDefaultWhat it does
pairs[{"from":"Hello","to":"Hola","pron":"OH-lah"},{"from":"Thank you","to":"Gracias","pron"…array of {from, to, pron}: source word, translation, pronunciation respelling (empty pron hides the line)
fromLang"English"name of the source language (left chip)
toLang"Español"name of the target language (right chip)
background"#16213E"backdrop colour or 'transparent'
ink"#F4F1E8"source word and chip text colour
accent"#FF8A5B"translated word and active chip colour
accent2"#5BD1D7"underline, arrow and pronunciation sweep colour
fontFamily""optional CSS font-family for the words (empty = grotesk); set one that supports your script
pairFrames120frames each word pair stays on screen
startAt0frame the lesson starts
speed1playback speed multiplier

Notes & credits

Technique sources:

  • original (round 3)