React Animatable screenshot

React Animatable

Author Avatar Theme by Inokawa
Updated: 8 Dec 2025
113 Stars

Tiny(~1kB) animation hooks for React, built on Web Animations API.

Categories

Overview

If you’re a React developer looking for a simple and efficient way to add animations to your applications, then react-animatable might be just what you need. Built on the Web Animations API (WAAPI), this library boasts a tiny footprint while providing powerful animation capabilities without getting in the way of React’s state management. It’s designed to simplify animations, making it easier to create beautiful user interfaces without sacrificing performance.

The charm of react-animatable lies in its lightweight nature, with individual hooks about 1kB gzipped, along with compatibility for various UI component libraries. This makes it an excellent choice for modern web applications that require smooth animations without the overhead of larger animation libraries.

Features

  • Easy Integration: Combine with a few lines of code that work seamlessly with any UI component libraries or CSS-in-JS frameworks.

  • Performant Animation: Takes advantage of the native Web Animations API for efficient animations, including support for ScrollTimeline and ViewTimeline.

  • TypeScript Support: Fully typed with TypeScript, allowing for stricter type-checking and enhanced developer experience.

  • Tiny Size: Each hook is around 1kB gzipped, with the total library size about 2kB gzipped, ensuring minimal impact on your bundle size.

  • Versatile Targeting: Capable of animating HTML, SVG, Canvas, or any other elements, making it suitable for diverse applications.

  • Dynamic Keyframe Generation: Utilize previous frame data and arguments for dynamic keyframes, adding flexibility to your animations.

  • JavaScript-Only Animations: Allows for animations without CSS via the useAnimationFunction for situations requiring pure JS solutions.