blurSlide()v4.0.523
A presentation that whips both scenes in one direction with a heavy motion blur, like a fast camera pan.
Example
BlurSlideTransition.tsximport {linearTiming ,TransitionSeries } from '@remotion/transitions'; import {blurSlide } from '@remotion/transitions/blur-slide'; constBasicTransition = () => { return ( <TransitionSeries > <TransitionSeries .Sequence durationInFrames ={40}> <Letter color ="#0b84f3">A</Letter > </TransitionSeries .Sequence > <TransitionSeries .Transition presentation ={blurSlide ({direction : 'from-left'})}timing ={linearTiming ({durationInFrames : 20})} /> <TransitionSeries .Sequence durationInFrames ={60}> <Letter color ="pink">B</Letter > </TransitionSeries .Sequence > </TransitionSeries > ); };
The slide is eased so that it starts and ends at rest. linearTiming() is a good choice for this presentation.
The blur grows in proportion to the distance traveled during the first half of the slide, then shrinks in proportion to the distance remaining during the second half.
API
Accepts an object with the following options:
direction?
One of from-left, from-right, from-top, from-bottom. Determines from which side the entering scene slides in.
Defaults to from-left.
TypeScript typeimport {BlurSlideDirection } from '@remotion/transitions/blur-slide'; constdirection :BlurSlideDirection = 'from-left';
blur?
The maximum length of the motion blur, as a fraction of the frame size along the slide direction. 0.5 blurs across half of the frame at the midpoint of the transition. Must be 0 or greater.
Defaults to 0.5.
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.
See also
- Source code for this presentation
slide()— the CSS-based slide without blur- HTML-in-canvas
- Presentations