An easy way to perform animations when a React component enters or leaves the DOM
An easy way to perform animations when a React component enters or leaves the DOM
ATTENTION! To address many issues that have come up over the years, the API in v2 and above is not backwards compatible with the original
React addon (v1-stable).For a drop-in replacement for
react-addons-transition-groupandreact-addons-css-transition-group, use the v1 release. Documentation and code for that release are available on thev1-stablebranch.We are no longer updating the v1 codebase, please upgrade to the latest version when possible
A set of components for managing component states (including mounting and unmounting) over time, specifically designed with animation in mind.
TypeScript definitions are published via DefinitelyTyped and can be installed via the following command:
npm install @types/react-transition-groupClone the repo first:
[email protected]:reactjs/react-transition-group.gitThen run npm install (or yarn), and finally npm run storybook to start a storybook instance that you can navigate to in your browser to see the examples.
React 19 has removed the ReactDOM.findDOMNode method.
Potential state inconsistency in Transition when used with TransitionGroup
Consider removing prop-types dependency
CSSTransition enter first tick
Package routing rendering issue
Warning: findDOMNode is deprecated in StrictMode.
Animation only on new item, and wrong animation
Weird twitching with horizontal collapse
JSX transform incompatible with React 19
findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Transition which is inside StrictMode. Instead, add a ref directly to the element you want to reference.