dillon1000/react

Commit

Adding "appear" phase to ReactTransitionGroup and ReactCSSTransitionGroup.

"appear" differs from "enter" in that all children of a transition group at mount time will "appear" but will not "enter". All children later added to an existing transition group will "enter" but not "appear".

This extra transition phase allows for animation-on-mount effects.

A mirroring "appear" prop has been added to ReactCSSTransitionGroup, however for reverse-compatibility (and because "appear" is less common) it defaults to false.

Thanks to @afa for his work investigating the possible ways to implement this.
Browse files
Changed paths4 files
First-parent comparison
M src/addons/transitions/ReactCSSTransitionGroup.js ModifiedM src/addons/transitions/ReactCSSTransitionGroupChild.js ModifiedM src/addons/transitions/ReactTransitionGroup.js ModifiedM src/addons/transitions/__tests__/ReactTransitionGroup-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…