0.2.2 • Published 6 years ago

switch-css-transition-group v0.2.2

Weekly downloads
4
License
ISC
Repository
github
Last release
6 years ago

SwitchCSSTransitionGroup

Combination of ReactCSSTransitionGroup and Switch for triggering transitions between routes.

There is no key param because it is changing automatically based on matching routes.

Install

npm i --save switch-css-transition-group

Demo

storybook online

or locally you can try npm run storybook

Usage

import SwitchCSSTransitionGroup from 'switch-css-transition-group'

// your code

<SwitchCSSTransitionGroup
    location={history.location}
    transitionName='example'
    transitionLeaveTimeout={300}
    transitionEnterTimeout={500}>
  <Route path='/' exact component={Home} />
  <Route path='/about' component={About} />
</SwitchCSSTransitionGroup>

Similar like if you are using ReactCSSTransitionGroup and Switch there are available properties:

On this ReactCSSTransitionGroup docs page you will also find how to deal with CSS and how customize more the transitions.

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

0.0.0

7 years ago