Opus Motion ★ Star on GitHub

Documents · document-zoom-highlight

Document zoom + highlight

A document page sits on a dark desk (procedural page, or your own page image); the camera zooms in on one paragraph while the rest of the page dims, a highlighter sweeps over the key phrase, and a SOURCE label slides in lower-left.

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

Document zoom + highlight: three frames of the document animation, start, middle and end
Document zoom + highlight — start, middle and end of the 7.0-second motion.

What Document zoom + highlight is for

Quoting a report, contract, court filing, policy or press release on screen - "here is the line that matters" - with the source credited.

  • document
  • zoom
  • highlight
  • highlighter
  • paragraph
  • report
  • quote
  • source
  • evidence
  • journalism
  • documentary
  • pdf
  • contract
  • filing
  • news

Details

Category
Document, form & report animations
Length
7.0 s (210 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
no
Seamless loop
no
Text props
title
Colour props
highlightColor accent ink paper desk
Mood
photo, cinematic, editorial, night
Roles
subject

Use Document zoom + highlight in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render document-zoom-highlight --props '{"title":"Report on the New Crossing","highlightColor":"#FFD43B","accent":"#C8282F","ink":"#16181B","paper":"#F5F1E6","desk":"#1B1E25"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export document-zoom-highlight --as mp4 --props '{"title":"Report on the New Crossing","highlightColor":"#FFD43B","accent":"#C8282F","ink":"#16181B","paper":"#F5F1E6","desk":"#1B1E25"}'

React / Next.js

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

<MotionPlayer
  motion="document-zoom-highlight"
  props={{
    title: 'Report on the New Crossing',
    highlightColor: '#FFD43B',
    accent: '#C8282F',
    ink: '#16181B',
    paper: '#F5F1E6',
    desk: '#1B1E25',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="document-zoom-highlight"
  props='{"title":"Report on the New Crossing","highlightColor":"#FFD43B","accent":"#C8282F","ink":"#16181B","paper":"#F5F1E6","desk":"#1B1E25"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "document-zoom-highlight",
      "props": {
        "title": "Report on the New Crossing",
        "highlightColor": "#FFD43B",
        "accent": "#C8282F",
        "ink": "#16181B",
        "paper": "#F5F1E6",
        "desk": "#1B1E25"
      }
    }
  ]
}

Document zoom + highlight props

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

PropDefaultWhat it does
pageSrc""optional page image (public/ path or URL, ~1:1.29 portrait page); empty = procedural page
org"Northwind Harbour Authority"procedural page: organisation line at the top
title"Report on the New Crossing"procedural page: document title
meta"Ref. NH-2041 · Filed 14 March · Page 3 of 12"procedural page: reference / date / page line
paragraphs["The survey team walked the full length of the channel on four separate mornings and r…procedural page: body paragraphs (strings)
focusParagraph1index (0-based) of the paragraph the camera zooms to
highlightText"1,208 metres, more than twice the distance the present structure can offer"exact phrase inside the focus paragraph to mark ("" = the whole paragraph)
region[0.1,0.4,0.8,0.14]with pageSrc: [x, y, width, height] of the area to zoom to and highlight, as 0-1 fractions of the page
source"Northwind Harbour Authority · Report NH-2041, p. 3"source label text (publisher · document · page; empty = none)
sourceTag"SOURCE"word in the accent block of the label
highlightColor"#FFD43B"highlighter colour (multiplied over the text)
accent"#C8282F"margin bar + label tab colour
ink"#16181B"page text colour
paper"#F5F1E6"page paper colour
desk"#1B1E25"desk colour behind the page; "transparent" = overlay
tilt-3page tilt in degrees before the zoom
fill0.62fraction of the frame width the focused paragraph fills when zoomed (landscape)
zoomAt24frame the camera starts to zoom
markAt82frame the highlighter starts
speed1timing multiplier

Notes & credits

Technique sources:

  • library original (document-journalism "this is what it says" shot)