zoomBlur()v4.0.456
A presentation where the outgoing scene zooms out and rotates while the incoming scene zooms in from the opposite angle, blended with a radial zoom blur.
warning
This presentation is built with HTML-in-canvas and currently requires Chrome Canary with chrome://flags/#canvas-draw-element enabled. It does not work in Firefox or Safari.
Example
ZoomBlurTransition.tsximport {linearTiming ,TransitionSeries } from '@remotion/transitions'; import {zoomBlur } from '@remotion/transitions/zoom-blur'; constBasicTransition = () => { return ( <TransitionSeries > <TransitionSeries .Sequence durationInFrames ={40}> <Letter color ="#0b84f3">A</Letter > </TransitionSeries .Sequence > <TransitionSeries .Transition presentation ={zoomBlur ({})}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 maximum rotation angle in radians applied to each scene as it transitions. The outgoing scene rotates from 0 to -rotation and the incoming scene rotates from +rotation to 0.
Defaults to Math.PI / 6 (30°).
Compatibility
| Browsers | Servers | Environments | |||||||
|---|---|---|---|---|---|---|---|---|---|
Chrome | Firefox | Safari | Node.js | Bun | Serverless Functions | ||||
For Preview, Chrome Canary with the chrome://flags/#canvas-draw-element flag enabled is required.