1.1.0 • Published 6 years ago

react-router-nest v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

react-router-nest

Animated screen transitions for React Router.

npm npm bundle size npm downloads last commit license

Demo

Install

npm install --save react-router-nest

Usage

import React, { Component } from "react";
import Nest, { NestLink } from "react-nest";

class App extends Component {
  render () {
    return (
      <Nest>
        <NestLink props={ this.props } to="/AnotherScreen">Go to Another Screen</NestLink>
      </Nest>
    )
  }
}

Screen-in and screen-out animations run on Nest. On clicking, NestLink redirects to the specified path.

Properties

Nest

PropDescriptionDefaultRequired
animationName of the animation. Valid values: fade , slide , zoomfade
durationHow long the animation will run. Valid values: slow , normal , fastnormal
classNameCustom styles for the container.

NestLink

PropDescriptionDefaultRequired
propsProps of the component. Must be: props={ this.props }YES
toThe path to link to.YES
animationName of the animation. Valid values: fade , slide , zoomInherits from Nest
durationHow long the animation will run. Valid values: slow , normal , fastInherits from Nest
classNameCustom styles for the container.

License

MIT © Ozan Bolel 2019

1.1.0

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago