1.0.10 • Published 5 years ago

react-router-animation v1.0.10

Weekly downloads
25
License
ISC
Repository
github
Last release
5 years ago

react-router-animation

react-router-animation is a lightweight, simple component for adding a sliding animation transition when swapping between react-router components. MUST be using react-router-dom for this package to work.

Getting Started

In the root directory of your project:

npm install --save react-router-animation
OR
yarn add react-router-animation

Prerequisites

Place the following import in the file where your routes are(for me App.js):

import SwitchWithSlide from "react-router-animation";

After Installing

Wrap your routes in App.js or wherever you have them in the HOC provided by react-router-animation

<SwitchWithSlide>
  <Route exact path="/" component={Home} />
  <Route exact path="/page" component={Page} />
</SwitchWithSlide>

Built With

  • React - JS framework
  • classnames - Only dependency used to conditionally assign class names

Contributing

All contribution welcome :) Open an issue, submit a pull request, or contact me directly!

Authors

License

This project is licensed under the ISC License - see the LICENSE.md file for details

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago