How to use react-router-transition - 10 common examples

To help you get started, we’ve selected a few react-router-transition examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github elevenbeans / TW2FS / public / javascripts / home / index.jsx View on Github external
import { Router, Route, IndexRoute, browserHistory } from 'react-router';

import { RouteTransition, presets } from 'react-router-transition';

import Home from 'home';
import Header from 'header';
import Flight from 'flight';
import FlightList from 'flightlist';
import Train from 'train';
import Hotel from 'hotel';

if (module.hot && process.env.NODE_ENV === 'dev-HMR') module.hot.accept();

// console.log('process.env.NODE_ENV in Front-end:', process.env.NODE_ENV);

var styles = presets.slideLeft;

var App = function({ children, location }) {
  styles = location.action === 'POP' ? presets.slideRight : presets.slideLeft;
  // console.log(location.action);
  return (
  <div>
    <header>

    
      {children}
    
</header></div>
github elevenbeans / TW2FS / public / javascripts / home / index.jsx View on Github external
var App = function({ children, location }) {
  styles = location.action === 'POP' ? presets.slideRight : presets.slideLeft;
  // console.log(location.action);
  return (
  <div>
    <header>

    
      {children}
    

  </header></div>
  );
};
github elevenbeans / we-voting / client / index.jsx View on Github external
import React from 'react';
import { render } from 'react-dom';
import { Router, browserHistory } from 'react-router';

import { RouteTransition, presets } from 'react-router-transition';

import Header from './components/header';

// import Home from './home'; // Load on demand
// import Detail from './detail';
// import List from './list';
// import New from './new';

if (module.hot &amp;&amp; process.env.NODE_ENV === 'dev-HMR') module.hot.accept();

var styles = presets.slideLeft;

const App = function({ children, location }) {
  styles = location.action === 'POP' ? presets.slideRight : presets.slideLeft;
  return (
    <div>
      <header>
      
        {children}
      
    </header></div>
  );
github smollweide / node-mock-server / packages / ui / src / components / organisms / Routes / SwitchFade / SwitchFade.js View on Github external
function bounce(val: number): BounceReturnType {
	return spring(val, {
		stiffness: 330,
		damping: 22,
	});
}
github jamaljsr / polar / src / components / routing / Switch.tsx View on Github external
const glide = (val: any) => {
  return spring(val, {
    stiffness: 174,
    damping: 19,
  });
};
github luigifcruz / weatherdump / gui / src / components / Meta / index.jsx View on Github external
function bounce(val) {
    return spring(val, {
        stiffness: 330,
        damping: 22,
    });
}
github PGPerfFarm / pgperffarm / front-end / src / app.jsx View on Github external
function bounce(val) {
    return spring(val, {
        stiffness: 330,
        damping: 22,
    });
}
github tunepack / tunepack-desktop / src / renderer / components / AnimatedSwitch / AnimatedSwitch.js View on Github external
function bounce (val) {
  return spring(val, {
    stiffness: 330,
    damping: 22
  })
}
github maisano / react-router-transition / example / src / Screens / Docs / AnimatedSwitch / example.js View on Github external
function bounce(val) {
  return spring(val, {
    stiffness: 330,
    damping: 22,
  });
}
github maisano / react-router-transition / example / src / Screens / Docs / AnimatedSwitch / Demo.js View on Github external
function bounce(val) {
  return spring(val, {
    stiffness: 330,
    damping: 22,
  });
}

react-router-transition

A thin layer over react-motion for animating routes in react-router.

MIT
Latest version published 4 years ago

Package Health Score

53 / 100
Full package analysis