Opus Motion ★ Star on GitHub

Camera · canvas-flythrough

Canvas flythrough

One tall layout holding every section; a virtual camera flies between stations with a van Wijk smooth zoom (zooming out slightly while travelling, settling on a long ease, speed-proportional camera blur) and at the end pulls all the way out to reveal the whole canvas was a phone screen.

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

Canvas flythrough: three frames of the camera effect, start, middle and end
Canvas flythrough — start, middle and end of the 9.0-second motion.

What Canvas flythrough is for

Explainers, product tours and pitch one-shot infographics: lay out sections as one canvas, list the stations, and let the camera do the storytelling.

  • camera
  • flythrough
  • zoom
  • pan
  • canvas
  • infographic
  • product tour
  • pull out
  • phone
  • one-shot
  • explainer

Details

Category
Camera moves & lens effects
Length
9.0 s (270 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
no
Seamless loop
no
Text props
badge tagline cards
Colour props
background accent ink
Mood
ui
Roles
subject

Use Canvas flythrough in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render canvas-flythrough --props '{"badge":"NEW · VERSION 2","tagline":["One canvas. Every section a station","the camera flies to."],"cards":[{"title":"Plan","body":"Everything in one clear view","color":"#F2542D"},{"title":"Build","body":"Ship the first draft today","color":"#2E7BFF"},{"title":"Grow","body":"Learn from every release","color":"#1FB58F"}],"background":"#FAF7F2","accent":"#F2542D","ink":"#1B1B2F"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export canvas-flythrough --as mp4 --props '{"badge":"NEW · VERSION 2","tagline":["One canvas. Every section a station","the camera flies to."],"cards":[{"title":"Plan","body":"Everything in one clear view","color":"#F2542D"},{"title":"Build","body":"Ship the first draft today","color":"#2E7BFF"},{"title":"Grow","body":"Learn from every release","color":"#1FB58F"}],"background":"#FAF7F2","accent":"#F2542D","ink":"#1B1B2F"}'

React / Next.js

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

<MotionPlayer
  motion="canvas-flythrough"
  props={{
    badge: 'NEW · VERSION 2',
    tagline: ['One canvas. Every section a station', 'the camera flies to.'],
    cards: [
      {
        title: 'Plan',
        body: 'Everything in one clear view',
        color: '#F2542D',
      },
      {
        title: 'Build',
        body: 'Ship the first draft today',
        color: '#2E7BFF',
      },
      {title: 'Grow', body: 'Learn from every release', color: '#1FB58F'},
    ],
    background: '#FAF7F2',
    accent: '#F2542D',
    ink: '#1B1B2F',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="canvas-flythrough"
  props='{"badge":"NEW · VERSION 2","tagline":["One canvas. Every section a station","the camera flies to."],"cards":[{"title":"Plan","body":"Everything in one clear view","color":"#F2542D"},{"title":"Build","body":"Ship the first draft today","color":"#2E7BFF"},{"title":"Grow","body":"Learn from every release","color":"#1FB58F"}],"background":"#FAF7F2","accent":"#F2542D","ink":"#1B1B2F"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "canvas-flythrough",
      "props": {
        "badge": "NEW · VERSION 2",
        "tagline": [
          "One canvas. Every section a station",
          "the camera flies to."
        ],
        "cards": [
          {
            "title": "Plan",
            "body": "Everything in one clear view",
            "color": "#F2542D"
          },
          {
            "title": "Build",
            "body": "Ship the first draft today",
            "color": "#2E7BFF"
          },
          {
            "title": "Grow",
            "body": "Learn from every release",
            "color": "#1FB58F"
          }
        ],
        "background": "#FAF7F2",
        "accent": "#F2542D",
        "ink": "#1B1B2F"
      }
    }
  ]
}

Canvas flythrough props

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

PropDefaultWhat it does
keys[{"t":0,"dur":0,"x":600,"y":360,"w":1050,"move":"drift"},{"t":56,"dur":26,"x":600,"y":1…camera stations [{t: arrival frame, dur: travel frames before arrival, x,y: world centre (canvas is 1200x2600), w: visible world width in portrait (widened to at most 1.15x the canvas in landscape; 0 = fit whole canvas), move: 'drift'|'fly'|'pull'}]
frameStyle"phone"'phone' wraps the canvas in a device bezel for the final pull-out reveal, 'none' leaves it flat
background"#FAF7F2"canvas colour
accent"#F2542D"brand accent
ink"#1B1B2F"text colour
heading["Work that","moves at","your speed."]hero headline lines (3)
badge"NEW · VERSION 2"small pill above the headline
tagline["One canvas. Every section a station","the camera flies to."]grey sub-lines under the headline (one entry per line)
sectionLabel"WHAT YOU GET"small caps label above the cards
cards[{"title":"Plan","body":"Everything in one clear view","color":"#F2542D"},{"title":"Bui…feature cards [{title, body, color}] (3)
stats[{"value":"98%","label":"FASTER SETUP"},{"value":"12k","label":"TEAMS ONBOARD"}]two big stats [{value, label}]
cta"Start free today"button text at the bottom
blurtruespeed-proportional camera blur while flying

Notes & credits

Technique sources:

  • mg-styles-15 demos/19-paperclip cam() / camBlur() + cues.json cam (MIT)