Skip to content

Jascha-Sundaresan/react-router-3-transition

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Router 3 Transition

Forked from React Router Transition Painless transitions for React Router, powered by React Motion. Example site.

  • v3 first

Example Usage

import React from "react";
import RouteTransition from 'react-router-3-transition';

const opts = { stiffness: 150, damping: 15 };
const fade = { atEnter: { opacity: 0 }, atActive: { opacity: 1 }, atLeave: { opacity: 0 }};

const App => ({ children, location: { pathname }}) => (
  <div>
    <RouteTransition {...{ pathname, opts, ...fade }}>
      { children }
    </RouteTransition>
  </div>
);

export default App;
  • no staggering or sequencing of animations
  • no durations or timing functions

These are features, not bugs.

About

fork of react-router-transition that works on for react-router-3 out of the box. Forked from:

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%