Opus Motion ★ Star on GitHub

Camera · whip-pan

Whip pan

The camera whips sideways to the next picture: expo-fast slide, directional motion blur, speed streaks, a settle.

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

Whip pan: three frames of the camera effect, start, middle and end
Whip pan — start, middle and end of the 5.0-second motion.

What Whip pan is for

Energetic cuts between product shots, locations, slides or portfolio images; a swish-pan transition inside one clip; travel and event recaps.

  • whip
  • pan
  • swish
  • camera
  • transition
  • motion blur
  • slideshow
  • cut

Details

Category
Camera moves & lens effects
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
labels
Colour props
palette ink accent
Image props
images
Mood
photo
Roles
subject

Use Whip pan in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render whip-pan --props '{"labels":[],"palette":["#ff7a59","#6a4cff","#14b8a6","#ffd166"],"ink":"#ffffff","accent":"#ffffff","images":[]}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export whip-pan --as mp4 --props '{"labels":[],"palette":["#ff7a59","#6a4cff","#14b8a6","#ffd166"],"ink":"#ffffff","accent":"#ffffff","images":[]}'

React / Next.js

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

<MotionPlayer
  motion="whip-pan"
  props={{
    labels: [],
    palette: ['#ff7a59', '#6a4cff', '#14b8a6', '#ffd166'],
    ink: '#ffffff',
    accent: '#ffffff',
    images: [],
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="whip-pan"
  props='{"labels":[],"palette":["#ff7a59","#6a4cff","#14b8a6","#ffd166"],"ink":"#ffffff","accent":"#ffffff","images":[]}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "whip-pan",
      "props": {
        "labels": [],
        "palette": [
          "#ff7a59",
          "#6a4cff",
          "#14b8a6",
          "#ffd166"
        ],
        "ink": "#ffffff",
        "accent": "#ffffff",
        "images": []
      }
    }
  ]
}

Whip pan props

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

PropDefaultWhat it does
images[]public/ paths or URLs, shown in order and looping (empty = procedural scenes)
scenes3how many procedural scenes when images is empty
labels[]optional caption per picture
direction"left"pan direction: left | right | up | down
hold34frames each picture holds still
whipFrames12frames the whip takes (lower = snappier)
startAt0frame the first hold begins
maxBlur70peak directional blur in u
streakstruespeed streak lines during the whip
flash0.12accent flash strength at the peak (0 = off)
punch0.04extra scale at the peak of the whip
palette["#ff7a59","#6a4cff","#14b8a6","#ffd166"]colours for procedural scenes
ink"#ffffff"caption colour
accent"#ffffff"flash / subject accent colour
fontFamily"stub"caption font

Notes & credits

Technique sources:

  • camera-vocabulary: whip pan / swish pan