Opus Motion ★ Star on GitHub

Type · flashcard-flip-deck

Flashcard flip deck

A study deck of flashcards: each card slides in showing the term, flips over in 3D to reveal its definition, then flies off as the next arrives, with a deck stack, progress dots, a counter and a deck-complete finish.

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

Flashcard flip deck: three frames of the text animation, start, middle and end
Flashcard flip deck — start, middle and end of the 14.3-second motion.

What Flashcard flip deck is for

Vocabulary, revision and quiz-prep videos, language-learning reels, course trailers and "test yourself" social posts — pass your own cards (term + definition), labels and brand colours.

  • flashcard
  • flip
  • deck
  • study
  • revision
  • vocabulary
  • term
  • definition
  • cards
  • education
  • language
  • learning
  • quiz
  • school

Details

Category
Text animations & kinetic typography
Length
14.3 s (430 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
cards title
Colour props
background ink accent accent2 card
Mood
3d, ui
Roles
type

Use Flashcard flip deck in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render flashcard-flip-deck --props '{"cards":[{"term":"Photosynthesis","definition":"How plants turn sunlight, water and air into food."},{"term":"Habitat","definition":"The natural home where an animal or plant lives."},{"term":"Evaporation","definition":"When liquid water warms up and rises as vapour."},{"term":"Gravity","definition":"The force that pulls objects toward each other."}],"title":"Science words","background":"#F4EFE6","ink":"#1F2430","accent":"#3D5AFE","accent2":"#FF9F1C","card":"#FFFFFF"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export flashcard-flip-deck --as webm-alpha --props '{"cards":[{"term":"Photosynthesis","definition":"How plants turn sunlight, water and air into food."},{"term":"Habitat","definition":"The natural home where an animal or plant lives."},{"term":"Evaporation","definition":"When liquid water warms up and rises as vapour."},{"term":"Gravity","definition":"The force that pulls objects toward each other."}],"title":"Science words","background":"#F4EFE6","ink":"#1F2430","accent":"#3D5AFE","accent2":"#FF9F1C","card":"#FFFFFF"}'

React / Next.js

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

<MotionPlayer
  motion="flashcard-flip-deck"
  props={{
    cards: [
      {
        term: 'Photosynthesis',
        definition: 'How plants turn sunlight, water and air into food.',
      },
      {
        term: 'Habitat',
        definition: 'The natural home where an animal or plant lives.',
      },
      {
        term: 'Evaporation',
        definition: 'When liquid water warms up and rises as vapour.',
      },
      {
        term: 'Gravity',
        definition: 'The force that pulls objects toward each other.',
      },
    ],
    title: 'Science words',
    background: '#F4EFE6',
    ink: '#1F2430',
    accent: '#3D5AFE',
    accent2: '#FF9F1C',
    card: '#FFFFFF',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="flashcard-flip-deck"
  props='{"cards":[{"term":"Photosynthesis","definition":"How plants turn sunlight, water and air into food."},{"term":"Habitat","definition":"The natural home where an animal or plant lives."},{"term":"Evaporation","definition":"When liquid water warms up and rises as vapour."},{"term":"Gravity","definition":"The force that pulls objects toward each other."}],"title":"Science words","background":"#F4EFE6","ink":"#1F2430","accent":"#3D5AFE","accent2":"#FF9F1C","card":"#FFFFFF"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "flashcard-flip-deck",
      "props": {
        "cards": [
          {
            "term": "Photosynthesis",
            "definition": "How plants turn sunlight, water and air into food."
          },
          {
            "term": "Habitat",
            "definition": "The natural home where an animal or plant lives."
          },
          {
            "term": "Evaporation",
            "definition": "When liquid water warms up and rises as vapour."
          },
          {
            "term": "Gravity",
            "definition": "The force that pulls objects toward each other."
          }
        ],
        "title": "Science words",
        "background": "#F4EFE6",
        "ink": "#1F2430",
        "accent": "#3D5AFE",
        "accent2": "#FF9F1C",
        "card": "#FFFFFF"
      }
    }
  ]
}

Flashcard flip deck props

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

PropDefaultWhat it does
cards[{"term":"Photosynthesis","definition":"How plants turn sunlight, water and air into fo…array of {term, definition} cards, shown in order
title"Science words"deck title shown top-left
termLabel"Term"small label on the term side
definitionLabel"Meaning"small label on the definition side
flipHint"Think, then flip"hint line at the bottom of the term side (empty hides it)
doneText"Deck complete!"headline of the end state
doneSubtitle"{n} cards reviewed"end-state subtitle; {n} is replaced by the card count
background"#F4EFE6"backdrop colour or 'transparent'
ink"#1F2430"title / counter / end-state text colour
accent"#3D5AFE"term-side card colour, progress dots, check mark
accent2"#FF9F1C"definition-side top stripe and label colour
card"#FFFFFF"definition-side card colour
fontFamily""optional CSS font-family for terms and the title (empty = grotesk)
hold24frames each side is held before flipping / moving on (definition is held 30% longer)
startAt0frame the deck starts
speed1playback speed multiplier

Notes & credits

Technique sources:

  • original (round 3)