slide()
A presentation where the entering slide pushes out the exiting slide.
Example
SlideTransition.tsxtsx
import {linearTiming ,TransitionSeries } from "@remotion/transitions";import {slide } from "@remotion/transitions/slide";constBasicTransition = () => {return (<TransitionSeries ><TransitionSeries .Sequence durationInFrames ={40}><Letter color ="#0b84f3">A</Letter ></TransitionSeries .Sequence ><TransitionSeries .Transition presentation ={slide ()}timing ={linearTiming ({durationInFrames : 30 })}/><TransitionSeries .Sequence durationInFrames ={60}><Letter color ="pink">B</Letter ></TransitionSeries .Sequence ></TransitionSeries >);};
SlideTransition.tsxtsx
import {linearTiming ,TransitionSeries } from "@remotion/transitions";import {slide } from "@remotion/transitions/slide";constBasicTransition = () => {return (<TransitionSeries ><TransitionSeries .Sequence durationInFrames ={40}><Letter color ="#0b84f3">A</Letter ></TransitionSeries .Sequence ><TransitionSeries .Transition presentation ={slide ()}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
.
TypeScript typetsx
import {SlideDirection } from "@remotion/transitions/slide";constslideDirection :SlideDirection = "from-left";
TypeScript typetsx
import {SlideDirection } from "@remotion/transitions/slide";constslideDirection :SlideDirection = "from-left";
enterStyle?
v4.0.84
The style of the container when the scene is is entering.
exitStyle?
v4.0.84
The style of the container when the scene is exiting.