Created
December 4, 2016 16:50
-
-
Save rfinni/c08d71311aabe7d9bd116e78e78638ef to your computer and use it in GitHub Desktop.
ReactCSSTransitionGroup example.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <ReactCSSTransitionGroup | |
| component="div" | |
| className="app-wrapper" | |
| transitionName="app-transition" | |
| transitionEnterTimeout={2000} | |
| transitionAppear={true} | |
| transitionAppearTimeout={2000} | |
| transitionLeaveTimeout={2000}> | |
| <ComponentToAnimate /> | |
| </ReactCSSTransitionGroup> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .app-transition-appear { | |
| opacity: 0; | |
| } | |
| .app-transition-appear.app-transition-appear-active { | |
| opacity: 1; | |
| transition: all .75s ease; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment