dreamyZoom()v4.0.466
A presentation that zooms and rotates through a white flash between scenes.
warning
This presentation is built with HTML-in-canvas and requires Google Chrome with chrome://flags/#canvas-draw-element enabled. It does not work in Firefox or Safari.
Example
DreamyZoomTransition.tsximport {linearTiming ,TransitionSeries } from '@remotion/transitions'; import {dreamyZoom } from '@remotion/transitions/dreamy-zoom'; constBasicTransition = () => { return ( <TransitionSeries > <TransitionSeries .Sequence durationInFrames ={40}> <Letter color ="#0b84f3">A</Letter > </TransitionSeries .Sequence > <TransitionSeries .Transition presentation ={dreamyZoom ({rotation : 6,scale : 1.2})}timing ={linearTiming ({durationInFrames : 30})} /> <TransitionSeries .Sequence durationInFrames ={60}> <Letter color ="pink">B</Letter > </TransitionSeries .Sequence > </TransitionSeries > ); };
API
Accepts an object with the following options:
rotation?
The rotation angle in degrees.
Defaults to 6.
scale?
The zoom scale at the white flash in the middle of the transition.
Defaults to 1.2.
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 | ||||
For Preview, Chrome with the chrome://flags/#canvas-draw-element flag enabled is required.
Credits
The fragment shader is adapted from the DreamyZoom GL Transition by Zeh Fernando, licensed under MIT.