June 2016
Intermediate to advanced
910 pages
18h 59m
English
Being able to introduce UI elements and dismiss them in a way that's fluid and not abrupt is an important part of a nice user experience. Having elements pop in and out of the DOM can be jarring. To animate components entering and leaving the DOM, React supplies a pair of interfaces: ReactTransitionGroup and ReactCSSTransitionGroup. These interfaces provide hooks to component mounting and unmounting lifecycle events. For ReactCSSTransitionGroup, the hooks are the automatic addition and removal of CSS class names using a documented naming convention. In these examples, we'll use the ReactCSSTransitionGroup interface.
The first example of DOM enter and exit animation is a popover menu. You've probably seen ...
Read now
Unlock full access