Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/maisano/react-router-transition
- Owner: maisano
- License: mit
- Created: 2016-02-10T19:20:58.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-04-30T10:05:43.000Z (over 3 years ago)
- Last Synced: 2024-10-09T15:49:13.960Z (about 1 month ago)
- Language: JavaScript
- Homepage: http://maisano.github.io/react-router-transition/
- Size: 180 KB
- Stars: 2,595
- Watchers: 25
- Forks: 138
- Open Issues: 28
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE
Awesome Lists containing this project
- awesome-react-components-all - react-router-transition - Transitions built for react-router, powered by react-motion. (Uncategorized / Uncategorized)
- awesome-react-components - react-router-transition - Transitions built for react-router, powered by react-motion. (UI Animation / Form Components)
- awesome-react - react-router-transition - Transitions built for react-router, powered by react-motion. ![](https://img.shields.io/github/stars/maisano/react-router-transition.svg?style=social&label=Star) (UI Animation / GraphQL)
- awesome-list - react-router-transition - Transitions built for react-router, powered by react-motion. (Ferramentas / Form Components)
- awesome-react-components - react-router-transition - Transitions built for react-router, powered by react-motion. (UI Animation / Form Components)
- awesome-react-components - react-router-transition - Transitions built for react-router, powered by react-motion. (UI Animation / Form Components)
- awesome-list - react-router-transition - router, powered by react-motion | maisano | 2506 | (JavaScript)
- awesome-react-components - react-router-transition - Transitions built for react-router, powered by react-motion. (UI Animation / Form Components)
- fucking-awesome-react-components - react-router-transition - Transitions built for react-router, powered by react-motion. (UI Animation / Form Components)
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