Opus Motion ★ Star on GitHub

Image looks · xray-scan

X-ray scan reveal

A glowing vertical scan beam (or an inky organic blob / hatched hole) sweeps across an image, revealing a glowing x-ray / blueprint line-art version in its wake.

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

X-ray scan reveal: three frames of the image effect, start, middle and end
X-ray scan reveal — start, middle and end of the 5.0-second motion.

What X-ray scan reveal is for

Showing what is inside / how it works, scanning or analysing beats, tech and science explainers.

  • image
  • xray
  • scan
  • blueprint
  • reveal
  • beam
  • wipe
  • cutaway
  • cross-section
  • battery
  • whats inside
  • karaoke
  • lyrics

Details

Category
Image looks & photo effects
Length
5.0 s (150 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
medium
Transparent overlay
no
Seamless loop
no
Text props
—
Colour props
beamColor glowColor bristleColor coreColor inkColor clayColor
Image props
src
Mood
dark, blueprint, photo, hud
Roles
backdrop
Pairs with
Callout labels, Science HUD reticle, Typewriter code window

Use X-ray scan reveal in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render xray-scan --props '{"beamColor":"#e6f6ff","glowColor":"#82b9d7","bristleColor":"#10131C","coreColor":"#2DFF71","inkColor":"#1d1b17","clayColor":"#e8e1d2","src":""}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export xray-scan --as mp4 --props '{"beamColor":"#e6f6ff","glowColor":"#82b9d7","bristleColor":"#10131C","coreColor":"#2DFF71","inkColor":"#1d1b17","clayColor":"#e8e1d2","src":""}'

React / Next.js

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

<MotionPlayer
  motion="xray-scan"
  props={{
    beamColor: '#e6f6ff',
    glowColor: '#82b9d7',
    bristleColor: '#10131C',
    coreColor: '#2DFF71',
    inkColor: '#1d1b17',
    clayColor: '#e8e1d2',
    src: '',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="xray-scan"
  props='{"beamColor":"#e6f6ff","glowColor":"#82b9d7","bristleColor":"#10131C","coreColor":"#2DFF71","inkColor":"#1d1b17","clayColor":"#e8e1d2","src":""}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "xray-scan",
      "props": {
        "beamColor": "#e6f6ff",
        "glowColor": "#82b9d7",
        "bristleColor": "#10131C",
        "coreColor": "#2DFF71",
        "inkColor": "#1d1b17",
        "clayColor": "#e8e1d2",
        "src": ""
      }
    }
  ]
}

X-ray scan reveal props

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

PropDefaultWhat it does
src""public/ image path (edge-detected into an x-ray); empty = procedural plate drawn as line art
seed1procedural plate seed
palette"dusk"procedural plate palette: dusk | night | dawn
mode"beam"beam | blob | hole | cutaway (half-section drawing of an object: hatched cut walls around a glowing core)
look"blueprint"blueprint (lavender on navy) | xray (cyan on deep blue)
speed0.75beam speed in frame-widths per second (0.75 measured)
start14frame the first reveal starts
passes2beam passes: 1 = reveal only, 2 = reveal then sweep back to colour
beamColor"#e6f6ff"beam core colour
glowColor"#82b9d7"beam glow colour (drawn at 40 %)
glowWidth50beam glow half-width in px at 1080p (40–60)
flicker0.03x-ray luminance flicker (±3 %)
reticletruedraw construction circles / reticle over the x-ray
bristleColor"#10131C"blob / hole ink edge colour
push1.2slow push-in in %/s
words[]beam mode karaoke cursor: [{text, at}] words laid across the frame; the beam's leading edge advances on each word's `at` frame, revealing the word cut into the x-ray layer
object"battery"cutaway: battery | pipe | cell
coreColor"#2DFF71"cutaway: emissive core colour (#2DFF71)
inkColor"#1d1b17"cutaway: line / hatch ink
clayColor"#e8e1d2"cutaway: clay body colour
orbitDeg8cutaway: slow camera drift in degrees over the shot
cutAngle180cutaway: cut extent in degrees (180 = half section)

Notes & credits

Technique sources:

  • video2 0:00 xray-scan-sweep
  • video11 0:01.3 organic-blob-reveal + blueprint-xray-style
  • video6 0:01.4 xray-hatch-hole