Opus Motion ★ Star on GitHub

Documents · lift-the-flap

Lift the flap

Textbook page: a PREDICT question gets its answer ticked, a cursor taps a cream paper flap ("Lift the flap to see the answer", hand-drawn "lift here" arrow), the corner peeks, then the flap flips up about its top edge toward the viewer in ≈ 0.15 s with a darker underside and a growing shadow, folds away into a small tab and reveals the printed answer; a marker sweep highlights the key phrase and a handwritten note pops in.

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

Lift the flap: three frames of the document animation, start, middle and end
Lift the flap — start, middle and end of the 5.0-second motion.

What Lift the flap is for

Quiz and answer reveals, "before you guess…" moments, myth-vs-fact beats and interactive-feeling explainers.

  • flap
  • reveal
  • quiz
  • answer
  • paper
  • flip
  • 3d
  • textbook
  • education
  • predict
  • question
  • interactive
  • highlight
  • handwritten
  • cursor
  • myth vs fact

Details

Category
Document, form & report animations
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
—
Colour props
background flapColor undersideColor ink accent markerColor
Mood
paper, 3d, night
Roles
subject

Use Lift the flap in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render lift-the-flap --props '{"background":"#EFEDE9","flapColor":"#F2EEE4","undersideColor":"#D9D2C2","ink":"#22211A","accent":"#683836","markerColor":"#F2D57E"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export lift-the-flap --as mp4 --props '{"background":"#EFEDE9","flapColor":"#F2EEE4","undersideColor":"#D9D2C2","ink":"#22211A","accent":"#683836","markerColor":"#F2D57E"}'

React / Next.js

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

<MotionPlayer
  motion="lift-the-flap"
  props={{
    background: '#EFEDE9',
    flapColor: '#F2EEE4',
    undersideColor: '#D9D2C2',
    ink: '#22211A',
    accent: '#683836',
    markerColor: '#F2D57E',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="lift-the-flap"
  props='{"background":"#EFEDE9","flapColor":"#F2EEE4","undersideColor":"#D9D2C2","ink":"#22211A","accent":"#683836","markerColor":"#F2D57E"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "lift-the-flap",
      "props": {
        "background": "#EFEDE9",
        "flapColor": "#F2EEE4",
        "undersideColor": "#D9D2C2",
        "ink": "#22211A",
        "accent": "#683836",
        "markerColor": "#F2D57E"
      }
    }
  ]
}

Lift the flap props

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

PropDefaultWhat it does
header"ENERGY · LESSON 1"faint running head at the top of the page ("" hides it and the page rule)
eyebrow"Predict"small caps label above the question ("" hides it)
question"A book slides off the shelf and lands on the floor. Where is its energy now?"the question asked before the reveal
options["It has been used up","In the thermal stores around it","Still in its gravitational st…answer choices with checkboxes ([] hides them)
tick1index of the option that gets ticked (-1 = none)
flapEyebrow"Why?"small caps label on the flap and above the answer
flapTitle"Lift the flap to see the answer"big line printed on the flap
flapSub"…after you have made your prediction."italic line under it
hint"lift here"handwritten hint next to the arrow
answer"Nothing is used up. As the book falls, its gravitational store empties into its kineti…answer paragraph printed under the flap
highlight"Nothing is used up."part of the answer that gets a marker sweep ("" = none)
note"you were right!"handwritten margin note after the reveal ("" = none)
openAt60frame the flap flips up
frames5flip duration in frames (5 ≈ 0.15 s, the source)
cursortrueshow the pointer that taps the flap
background"#EFEDE9"page paper colour
flapColor"#F2EEE4"flap paper colour
undersideColor"#D9D2C2"flap underside colour
ink"#22211A"text ink colour
accent"#683836"eyebrow colour
markerColor"#F2D57E"highlighter colour

Notes & credits

Technique sources:

  • video x3 19.55-19.80 (lift-the-flap)
  • video x3 13.5-22.0 (predict / why cards)