Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/marcusstenbeck/remotion-transition-series

Remotion <Series/> component with transitions
https://github.com/marcusstenbeck/remotion-transition-series

Last synced: 3 months ago
JSON representation

Remotion <Series/> component with transitions

Lists

README

        

# remotion-transition-series

A `TransitionSeries` component for [Remotion](https://www.remotion.dev/).

[🔗 See included transitions](https://twitter.com/marcusstenbeck/status/1446420801918586888)

Included in this repo are the following transitions:

- Dissolve
- FadeThroughColor
- Pan
- Slide
- SlidingDoors
- LinearWipe
- CircularWipe

> 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`.

## Setup

```
npm install remotion-transition-series
```

## Preview

To start the Remotion Preview of run:

```
npm run preview
```

## Examples

Take a look at the `preview` folder. In it you'll find a bunch of transitions.

### With defaults for the `CircularWipe` transition.

```jsx


Hello


World

```

### Using custom props with the `CircularWipe` transition

```jsx


Hello

}
/>


World

```

### Custom easing with `CircularWipe` transition

```jsx
import { Easing } from 'remotion';

// ...


Hello

(

)}
/>


World


;
```

## Docs

### ``

See: https://www.remotion.dev/docs/series

---

### ``

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 series
- `enteringElement` is the next sequence in the series

```
(props: {
progress: number;
exitingElement: ReactNode;
enteringElement: ReactNode;
}) => ReactNode;
```

## Contributing

Feel free to open pull requests or file issues.

## Author

[@marcusstenbeck](https://twitter.com/marcusstenbeck)