翻转()v4.0.54
🌐 flip()v4.0.54
一个演示文稿,其中正在退出的幻灯片翻转180度,背面显示下一张幻灯片。
🌐 A presentation where the exiting slide flips by 180 degrees, revealing the next slide on the back side.
示例
🌐 Example
SlideTransition.tsximport {linearTiming ,TransitionSeries } from "@remotion/transitions"; import {flip } from "@remotion/transitions/flip"; constBasicTransition = () => { return ( <TransitionSeries > <TransitionSeries .Sequence durationInFrames ={40}> <Letter color ="#0b84f3">A</Letter > </TransitionSeries .Sequence > <TransitionSeries .Transition presentation ={flip ()}timing ={linearTiming ({durationInFrames : 30 })} /> <TransitionSeries .Sequence durationInFrames ={60}> <Letter color ="pink">B</Letter > </TransitionSeries .Sequence > </TransitionSeries > ); };
应用编程接口
🌐 API
接受具有以下属性的对象:
🌐 Takes an object with the following properties:
direction
from-left、from-right、from-top、from-bottom之一。
🌐 One of from-left, from-right, from-top, from-bottom.
TypeScript typeimport {FlipDirection } from "@remotion/transitions/flip"; constflipDirection :FlipDirection = "from-left";
perspective?
翻转动画的 CSS perspective。默认值为 1000。
🌐 The CSS perspective of the flip animation. Defaults to 1000.
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