Skip to content

Commit

Permalink
Clarify how transition props work (facebook#8124)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored Oct 27, 2016
1 parent b3b1391 commit e1b1402
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/docs/addons-animation.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ render() {
<ReactCSSTransitionGroup
transitionName="example"
transitionAppear={true}
transitionAppearTimeout={500}>
transitionAppearTimeout={500}
transitionEnter={false}
transitionLeave={false}>
<h1>Fading at Initial Mount</h1>
</ReactCSSTransitionGroup>
);
Expand All @@ -130,6 +132,8 @@ At the initial mount, all children of the `ReactCSSTransitionGroup` will `appear
> Note:
>
> The prop `transitionAppear` was added to `ReactCSSTransitionGroup` in version `0.13`. To maintain backwards compatibility, the default value is set to `false`.
>
> However, the default values of `transitionEnter` and `transitionLeave` are `true` so you must specify `transitionEnterTimeout` and `transitionLeaveTimeout` by default. If you don't need either enter or leave animations, pass `transitionEnter={false}` or `transitionLeave={false}`.
### Custom Classes

Expand Down

0 comments on commit e1b1402

Please sign in to comment.