Skip to content

STRML/react-router-component-transition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React-Router-Component-Transition

A simple component that overrides <Locations> in React-Router-Component to animate page transitions.

View the Demo

Install

npm install react-router-component-transition
var AnimatedLocations = require('react-router-component-transition');

Usage

Simply replace any usage of <Locations> in your app with <AnimatedLocations>.

View the source for more details and comments.

You can also change the transition used on a particular link by using the prop transitionName, or shut off transitions entirely by using the prop noTransition.

View the demo source for more usage details.

Development

To run the demo locally and tinker:

% git clone https://github.com/strml/react-router-page-transition.git
% npm install
% npm run develop
% open index.html

About

Example code for router which does animated page transitions using ReactCSSTranstionGroup

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •