A TransitionSeries
component for Remotion.
Included in this repo are the following transitions:
To use these transitions in your project, please copy the component into your own project.
The NPM package simply includes the core components and a basic
FadeTransition
.
npm install remotion-transition-series
To start the Remotion Preview of run:
npm run preview
Take a look at the preview
folder. In it you'll find a bunch of transitions.
CircularWipe
transition.<TransitionSeries>
<TransitionSeries.Sequence durationInFrames={60}>
<div>Hello</div>
</TransitionSeries.Sequence>
<TransitionSeries.Transition
durationInFrames={30}
transitionComponent={CircularWipe}
/>
<TransitionSeries.Sequence durationInFrames={60}>
<div>World</div>
</TransitionSeries.Sequence>
</TransitionSeries>
CircularWipe
transition<TransitionSeries>
<TransitionSeries.Sequence durationInFrames={60}>
<div>Hello</div>
</TransitionSeries.Sequence>
<TransitionSeries.Transition
durationInFrames={30}
transitionComponent={(props) => <CircularWipe {...props} direction="in" />}
/>
<TransitionSeries.Sequence durationInFrames={60}>
<div>World</div>
</TransitionSeries.Sequence>
</TransitionSeries>
CircularWipe
transitionimport { Easing } from 'remotion';
// ...
<TransitionSeries>
<TransitionSeries.Sequence durationInFrames={60}>
<div>Hello</div>
</TransitionSeries.Sequence>
<TransitionSeries.Transition
durationInFrames={30}
transitionComponent={(props) => (
<CircularWipe {...props} progress={Easing.inOut(Easing.exp)} />
)}
/>
<TransitionSeries.Sequence durationInFrames={60}>
<div>World</div>
</TransitionSeries.Sequence>
</TransitionSeries>;
<TransitionSeries>
See: https://www.remotion.dev/docs/series
<TransitionSeries.Transition />
For other props, see: https://www.remotion.dev/docs/sequence
transitionComponent
A component that renders the transition.
Props
progress
between 0
to 1
exitingElement
is the previous sequence in the seriesenteringElement
is the next sequence in the series(props: {
progress: number;
exitingElement: ReactNode;
enteringElement: ReactNode;
}) => ReactNode;
Feel free to open pull requests or file issues.