Skip to content

An interface component for the React.js ReactCSSTransitionGroup component which allows transitions on initial render

Notifications You must be signed in to change notification settings

jcobb/react-js-transition-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An interface component to apply React.js CSS transitions on initial render

It's usage is identical to the ReactCSSTransitionGroup, however it has an additional prop called transitionAppear which takes a boolean value. This prop will handle the conditional rendering based on mounted state, then simply wraps the elements you want to animate with the regular ReactCSSTransitionGroup addon component.

To use this component, simply include it in your app with the rest of your components and use it in place of the ReactCSSTransitionGroup add-on.

It seems like the ability to apply a transition when the component first appears should be available in the ReactCSSTransitionGroup component soon. There is a pull request on Facebook's React.js GitHub repo which implements the functionality and it was merged in to the master branch last November. It has yet to make it in to a stable release, but hopefully it's not too far away.

About

An interface component for the React.js ReactCSSTransitionGroup component which allows transitions on initial render

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published