Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

2.3 KB
Raw Blame
---
title: Whip Pan
description: Whip the camera sideways with motion blur so both scenes fly through the frame in one move
component: whip-pan
vibe: playful
length: 26
useWhen:
  - "Cuts need to feel fast and energetic — feature-to-feature jumps, montage rhythm, tech demos."
  - "Scenes are peers in a sequence and the narrative moves sideways (or up/down a stack)."
  - "You need the workhorse directional cut — this is the default kinetic transition of the catalog."
avoidWhen:
  - "The moment is calm or contemplative — the whip reads as urgency; use `focus-pull`."
  - "More than ~3 whips in a row in the same direction — vary direction or alternate with `fade-through`."
askedAs:
  - "fast sideways camera whip"
  - "motion blur swipe cut"
  - "I want the camera to whip sideways with blur so both scenes fly past"
  - "energetic feature to feature jump in a montage"
  - "tech demo rhythm with quick horizontal blur cuts"
  - "everything streaks sideways in blur and the next scene stops"
---

<ComponentPreview name="whip-pan" />

<InstallBlock name="whip-pan" />

## Usage

`whipPan()` is a Remotion transition presentation. Pass it to a
`TransitionSeries.Transition` between two sequences. Both scenes travel in the
same direction as one continuous camera whip — blur and a subtle smear stretch
peak at maximum velocity mid-transition and hide the seam. It lives on speed:
keep it around 26 frames.

```tsx
import { TransitionSeries, linearTiming } from "@remotion/transitions";
import { whipPan } from "@/components/remocn/whip-pan";

export const MyVideo = () => (
  <TransitionSeries>
    <TransitionSeries.Sequence durationInFrames={70}>
      <SceneA />
    </TransitionSeries.Sequence>
    <TransitionSeries.Transition
      timing={linearTiming({ durationInFrames: 26 })}
      presentation={whipPan()}
    />
    <TransitionSeries.Sequence durationInFrames={70}>
      <SceneB />
    </TransitionSeries.Sequence>
  </TransitionSeries>
);
```

## Props

`whipPan(props)` accepts:

<PropsTable
  rows={[
    {
      name: "direction",
      type: "string",
      default: '"left"',
      description: "Direction the camera whips. One of left, right, up, down.",
    },
    {
      name: "blur",
      type: "number",
      default: "24",
      description: "Peak motion blur in pixels at maximum velocity.",
    },
  ]}
/>