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

https://github.com/jossmac/react-view-transition

🎟 Animate views as they mount/unmout
https://github.com/jossmac/react-view-transition

react transition view

Last synced: about 1 year ago
JSON representation

🎟 Animate views as they mount/unmout

Awesome Lists containing this project

README

          

# React View Transition

Animate views as they mount/unmount.

https://jossmac.github.io/react-view-transition

```jsx
import TransitionProvider from 'react-view-transition';

const Slider = ({ views }) => (

{views.map(v =>

{v.label}
)}

);
Slider.defaultProps = {
views: [
{ key: 'first', label: 'First View' },
{ key: 'second', label: 'Second View' },
{ key: 'third', label: 'Third View' },
],
};
```

## Alternatives

This component is intentionally simple. For more a sophisticated alternative checkout:

- https://github.com/souporserious/react-view-pager