flip()v4.0.54
A presentation where the exiting scene flips by 180 degrees, revealing the next scene 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?
One of from-left, from-right, from-top, from-bottom. Default: from-left.
TypeScript typeimport {FlipDirection } from "@remotion/transitions/flip"; constflipDirection :FlipDirection = "from-left";
perspective?
The CSS perspective of the flip animation. Defaults to 1000.
outerEnterStyle?v4.0.84
The style of the outer element when the scene 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.
Compatibility
| Browsers | Environments | |||||
|---|---|---|---|---|---|---|
Chrome | Firefox | Safari | ||||
Client-side rendering does not support the CSS perspective property that this presentation relies on, unless HTML-in-canvas capture is active.