Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/hanford/react-page-transition

drop in react page transition component
https://github.com/hanford/react-page-transition

animation page react transition

Last synced: 28 days ago
JSON representation

drop in react page transition component

Awesome Lists containing this project

README

        


react-page-transition


Drop in page transition component built for hooks

![preview](https://github.com/hanford/react-page-transition/blob/master/preview.gif)










## Installation

```sh
$ npm install --save react-page-transition
```

```sh
$ yarn add react-page-transition
```

## Usage

```js
import * as React from 'react'
import Pager from 'react-page-transition'

export default function App() {
const [value, setState] = React.useState(0);

return (
setState(i)}>

Hey!


{(props, index) => {
return 'I also work!';
}}

);
}
```

## Example

[![Edit react-page-transition](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/reactpagetransition-9x9d2?fontsize=14)

```sh
$ yarn example
```


Questions? Feedback? [Please let me know](https://github.com/hanford/react-page-transition/issues/new)

## License (MIT)

```
WWWWWW||WWWWWW
W W W||W W W
||
( OO )__________
/ | \
/o o| MIT \
\___/||_||__||_|| *
|| || || ||
_||_|| _||_||
(__|__|(__|__|
```