Skip to main content

clockWipe()v4.0.74

A presentation where the exiting slide is wiped out in a circular movement, revealing the next slide underneath it.

A
B

Example

ClockWipeTransition.tsx
tsx
import { linearTiming, TransitionSeries } from "@remotion/transitions";
import { clockWipe } from "@remotion/transitions/clock-wipe";
import { useVideoConfig } from "remotion";
 
const BasicTransition = () => {
const { width, height } = useVideoConfig();
 
return (
<TransitionSeries>
<TransitionSeries.Sequence durationInFrames={40}>
<Letter color="#0b84f3">A</Letter>
</TransitionSeries.Sequence>
<TransitionSeries.Transition
presentation={clockWipe({ width, height })}
timing={linearTiming({ durationInFrames: 30 })}
/>
<TransitionSeries.Sequence durationInFrames={60}>
<Letter color="pink">B</Letter>
</TransitionSeries.Sequence>
</TransitionSeries>
);
};
ClockWipeTransition.tsx
tsx
import { linearTiming, TransitionSeries } from "@remotion/transitions";
import { clockWipe } from "@remotion/transitions/clock-wipe";
import { useVideoConfig } from "remotion";
 
const BasicTransition = () => {
const { width, height } = useVideoConfig();
 
return (
<TransitionSeries>
<TransitionSeries.Sequence durationInFrames={40}>
<Letter color="#0b84f3">A</Letter>
</TransitionSeries.Sequence>
<TransitionSeries.Transition
presentation={clockWipe({ width, height })}
timing={linearTiming({ durationInFrames: 30 })}
/>
<TransitionSeries.Sequence durationInFrames={60}>
<Letter color="pink">B</Letter>
</TransitionSeries.Sequence>
</TransitionSeries>
);
};

API

Accepts an object with the following options:

width

Should be set to the width of the video.

height

Should be set to the height of the video.

outerEnterStyle?v4.0.84

The style of the outer element when the scene is is entering.

outerExitStyle?v4.0.84

The style of the outer element when the scene is exiting.

innerEnterStyle?v4.0.84

The style of the inner element when the scene is entering.

innerExitStyle?v4.0.84

The style of the inner element when the scene is exiting.

See also