clockWipe()v4.0.74
一个演示文稿,其中正在退出的幻灯片以圆形动作被擦除,显示其下方的下一张幻灯片。
🌐 A presentation where the exiting slide is wiped out in a circular movement, revealing the next slide underneath it.
示例
🌐 Example
ClockWipeTransition.tsximport {linearTiming ,TransitionSeries } from "@remotion/transitions"; import {clockWipe } from "@remotion/transitions/clock-wipe"; import {useVideoConfig } from "remotion"; constBasicTransition = () => { 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