Skip to main content

crosswarp()v4.0.466

A presentation that warps the outgoing scene and incoming scene against each other across the x-axis.

Example​

CrosswarpTransition.tsx
import {linearTiming, TransitionSeries} from '@remotion/transitions'; import {crosswarp} from '@remotion/transitions/crosswarp'; const BasicTransition = () => { return ( <TransitionSeries> <TransitionSeries.Sequence durationInFrames={40}> <Letter color="#0b84f3">A</Letter> </TransitionSeries.Sequence> <TransitionSeries.Transition presentation={crosswarp({})} 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: crosswarp({}).

effects?​

Effects to apply after the transition shader. See makeHtmlInCanvasPresentation().

effectsOutputSize?v4.0.536​

Sets the effect resolution. See makeHtmlInCanvasPresentation().

Compatibility​

BrowsersServersEnvironments
Chrome
Firefox
Safari
Node.js
Bun
Serverless Functions

Previewing this presentation requires Chrome 157 or later.

Credits​

The fragment shader is adapted from the crosswarp GL Transition by Eke Péter, licensed under MIT.

See also​