|
2 | 2 |
|
3 | 3 |   [](https://github.com/inokawa/react-animatable/actions/workflows/check.yml) [](https://github.com/inokawa/react-animatable/actions/workflows/demo.yml) |
4 | 4 |
|
5 | | -A powerful composable animation library for [React](https://github.com/facebook/react), built on [Web Animations API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API) and React hook. |
| 5 | +A tiny(~1kB) animation hooks for [React](https://github.com/facebook/react), built on [Web Animations API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API). |
6 | 6 |
|
7 | 7 | <img src="./images/demo-chart.gif" width="350px" /><img src="./images/demo-mouse.gif" width="350px" /> |
8 | 8 |
|
9 | | -<img src="./images/demo-scroll.gif" width="350px" /><img src="./images/demo-alphabet.gif" width="350px" /> |
10 | | - |
11 | 9 | ## Features |
12 | 10 |
|
13 | 11 | - Performant animation driven by native [Web Animations API (WAAPI)](https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API). |
14 | | -- Easy integration with a few lines of code. |
15 | | - - Supports any UI component libraries, [Material UI](https://github.com/mui/material-ui), [Chakra UI](https://github.com/chakra-ui/chakra-ui), [Ant Design](https://github.com/ant-design/ant-design), [Fluent UI](https://github.com/microsoft/fluentui), [Mantine](https://github.com/mantinedev/mantine) and the others. |
16 | | - - Supports any CSS-in-JS libraries, [styled-components](https://github.com/styled-components/styled-components), [emotion](https://github.com/emotion-js/emotion), [stitches](https://github.com/stitchesjs/stitches), [vanilla-extract](https://github.com/vanilla-extract-css/vanilla-extract), [linaria](https://github.com/callstack/linaria), [compiled](https://github.com/atlassian-labs/compiled) and the others. |
17 | | - - Supports [Next.js](https://github.com/vercel/next.js) and server-side rendering (SSR). |
| 12 | +- Easy integration with a few lines of code. Works with any UI component libraries or CSS-in-JS libraries. |
18 | 13 | - HTML, SVG, Canvas and anything can be animated. |
19 | | -- [Tiny bundle size (currently about 2kB gzipped)](https://bundlephobia.com/package/react-animatable) and has zero dependencies. Of course treeshakeable |
| 14 | +- Tiny. Each hooks are ~1kB gzipped and [the total is ~2kB gzipped](https://bundlephobia.com/package/react-animatable). |
20 | 15 | - Fully typed with [TypeScript](https://www.typescriptlang.org/), which is stricter than TypeScript's [lib.dom.d.ts](https://github.com/microsoft/TypeScript/blob/main/lib/lib.dom.d.ts). |
21 | 16 | - Composable and declarative APIs based on React hook. |
22 | 17 |
|
|
0 commit comments