Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/maisano/react-router-transition

painless transitions built for react-router, powered by react-motion
https://github.com/maisano/react-router-transition

Last synced: 25 days ago
JSON representation

painless transitions built for react-router, powered by react-motion

Awesome Lists containing this project

README

        

# React Router Transition

Painless transitions for React Router, powered by React Motion. [Example site](http://maisano.github.io/react-router-transition/).

### Requirements

To use the latest version of this package (`2.x`), you'll need to use a version
of React compatible with hooks, as well as version `5.x` of `react-router-dom`.

### Installation

`npm install --save react-router-transition react-router-dom`

### Example Usage
```jsx
import { BrowserRouter as Router, Route } from 'react-router-dom';
import { AnimatedSwitch } from 'react-router-transition';

export default () => (







)
```

```css
.switch-wrapper {
position: relative;
}

.switch-wrapper > div {
position: absolute;
}
```

### Docs

- [AnimatedSwitch](http://maisano.github.io/react-router-transition/animated-switch)
- [AnimatedRoute](http://maisano.github.io/react-router-transition/animated-route)

### Limitations

This library has some obvious limitations, the most marked of which are:

- no staggering or sequencing of animations
- no durations or timing functions