zoomInOut()v4.0.457
A presentation where the outgoing scene zooms in toward the viewer and crossfades into the incoming scene, which then zooms back out from a magnified state.
Example
ZoomInOutTransition.tsximport {linearTiming ,TransitionSeries } from '@remotion/transitions'; import {zoomInOut } from '@remotion/transitions/zoom-in-out'; constBasicTransition = () => { return ( <TransitionSeries > <TransitionSeries .Sequence durationInFrames ={40}> <Letter color ="#0b84f3">A</Letter > </TransitionSeries .Sequence > <TransitionSeries .Transition presentation ={zoomInOut ({})}timing ={linearTiming ({durationInFrames : 30})} /> <TransitionSeries .Sequence durationInFrames ={60}> <Letter color ="pink">B</Letter > </TransitionSeries .Sequence > </TransitionSeries > ); };
API
Accepts an object with the following options. Pass an empty object to use the defaults: zoomInOut({}).
effects?
Effects to apply after the transition shader. See makeHtmlInCanvasPresentation().
effectsOutputSize?v4.0.536
Sets the effect resolution. See makeHtmlInCanvasPresentation().
Compatibility
| Browsers | Servers | Environments | |||||||
|---|---|---|---|---|---|---|---|---|---|
Chrome | Firefox | Safari | Node.js | Bun | Serverless Functions | ||||
Previewing this presentation requires Chrome 157 or later.
Credits
The fragment shader is adapted from the zoomInOut GL Transition by OllyOllyOlly, licensed under MIT.