packages/docs/docs/transitions/presentations/clock-wipe.mdx
A presentation where the exiting slide is wiped out in a circular movement, revealing the next slide underneath it.
<Demo type="clock-wipe" />import { AbsoluteFill } from "remotion";
const Letter: React.FC<{
children: React.ReactNode;
color: string;
}> = ({ children, color }) => {
return (
<AbsoluteFill
style={{
backgroundColor: color,
opacity: 0.9,
justifyContent: "center",
alignItems: "center",
fontSize: 200,
color: "white",
}}
>
{children}
</AbsoluteFill>
);
};
// ---cut---
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>
);
};
Accepts an object with the following options:
widthShould be set to the width of the video.
heightShould be set to the height of the video.
outerEnterStyle?<AvailableFrom v="4.0.84"/>The style of the outer element when the scene is entering.
outerExitStyle?<AvailableFrom v="4.0.84"/>The style of the outer element when the scene is exiting.
innerEnterStyle?<AvailableFrom v="4.0.84"/>The style of the inner element when the scene is entering.
innerExitStyle?<AvailableFrom v="4.0.84"/>The style of the inner element when the scene is exiting.