React Simple Animate is a lightweight library providing declarative animation capabilities for React applications. It enables developers to implement animations from style A to style B, CSS keyframes animations, and chain multiple animations into sequences. Currently stable at version 3.5.3, it maintains an active release cadence with frequent minor updates focusing on bug fixes, type improvements, and React version compatibility, including support for React 19. Key differentiators include its minimal footprint and lack of external dependencies beyond React itself, making it an efficient choice for adding performant UI animations without bloat. It provides both component-based (`Animate`, `AnimateKeyframes`, `AnimateGroup`) and hook-based (`useAnimate`, `useAnimateKeyframes`, `useAnimateGroup`) APIs to suit different development styles, offering flexibility for both simple transitions and complex choreographed sequences.
npm install react-simple-animateVerified import paths — ran on the pinned version, not inferred.
This example demonstrates the usage of `Animate`, `AnimateKeyframes`, and `AnimateGroup` components to create individual, keyframe, and sequenced UI animations in React.
Ensure all style objects passed to animation props conform to `React.CSSProperties`.
Upgrade to `react-simple-animate@3.5.2` or higher to ensure `onComplete` callbacks function reliably with `useAnimate`.
Upgrade to `react-simple-animate@3.3.11` or higher to ensure `useAnimateKeyframes` responds correctly to state updates.
Upgrade to `react-simple-animate@3.3.9` or higher for correct time delay management within `AnimateGroup`.
Install `react` and `react-dom` versions compatible with `^16.8.0 || ^17 || ^18 || ^19` as specified in the peer dependencies. For example, `npm install react react-dom`.
Update `react-simple-animate` to version `3.5.2` or newer.
Update `react-simple-animate` to version `3.3.11` or newer.
Update `react-simple-animate` to version `3.3.9` or newer.