Opus Motion ★ Star on GitHub

FX · wax-resist-reveal

Wax resist reveal

Crayon picture-book page (hills, lighthouse, moon) drawn on toothy paper; a broad ultramarine watercolour wash sweeps across with bristle streaks and a dark wet front, and hundreds of white-wax stars plus a hidden hand-lettered message appear exactly where it passes, each uncovered star glinting.

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

Wax resist reveal: three frames of the visual effect, start, middle and end
Wax resist reveal — start, middle and end of the 8.0-second motion.

What Wax resist reveal is for

Reveal a hidden message, thank-you names or a feature: greeting cards, kids brands, bedtime stories, education.

  • crayon
  • wax
  • resist
  • watercolour
  • wash
  • reveal
  • hidden-message
  • stars
  • night
  • picture-book
  • kids
  • greeting-card
  • hand-made
  • paper
  • glint

Details

Category
Visual effects & particles
Length
8.0 s (240 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
no
Seamless loop
no
Text props
—
Colour props
washColor paperColor inkColor hillColors
Mood
paper, photo, nature, night
Roles
subject

Use Wax resist reveal in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render wax-resist-reveal --props '{"washColor":"#2B3576","paperColor":"#F4EFE3","inkColor":"#2D3263","hillColors":["#62A24C","#6A5AA6"]}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export wax-resist-reveal --as mp4 --props '{"washColor":"#2B3576","paperColor":"#F4EFE3","inkColor":"#2D3263","hillColors":["#62A24C","#6A5AA6"]}'

React / Next.js

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

<MotionPlayer
  motion="wax-resist-reveal"
  props={{
    washColor: '#2B3576',
    paperColor: '#F4EFE3',
    inkColor: '#2D3263',
    hillColors: ['#62A24C', '#6A5AA6'],
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="wax-resist-reveal"
  props='{"washColor":"#2B3576","paperColor":"#F4EFE3","inkColor":"#2D3263","hillColors":["#62A24C","#6A5AA6"]}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "wax-resist-reveal",
      "props": {
        "washColor": "#2B3576",
        "paperColor": "#F4EFE3",
        "inkColor": "#2D3263",
        "hillColors": [
          "#62A24C",
          "#6A5AA6"
        ]
      }
    }
  ]
}

Wax resist reveal props

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

PropDefaultWhat it does
message"make a wish"the hidden message written in white wax (short)
stars150number of white-wax stars
washColor"#2B3576"watercolour colour (ultramarine default; try rose #9B3B5A or sap green #2F5A3A)
direction"right"wash sweep direction: right or down
washStart82frame the brush enters
washDuration88frames for the sweep (2–3 s)
paperColor"#F4EFE3"paper colour
inkColor"#2D3263"outline crayon colour
hillColors["#62A24C","#6A5AA6"]two crayon colours for the hills
scenetruedraw the picture-book scene (false = only paper, wax and wash)
beamtruethe lighthouse beam is coloured in after the wash
seed3star layout seed

Notes & credits

Technique sources:

  • lemo-opuscar styles/crayon-book (MIT, LemoLab) — demo/gl.js FS_WASH wax resist, demo/crayon.js