# @animxyz/react

> AnimXYZ is a composable animation library that makes your site shine

Latest version **0.6.9** (published 2026-07-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @animxyz/react
pnpm add @animxyz/react
yarn add @animxyz/react
bun add @animxyz/react
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.6.9 |
| Published | 2026-07-18 |
| First published | 2020-05-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 92 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2499 |
| Author | Ingram Projects |
| Maintainers | milesingrams, mattaningram |
| Keywords | react, css, css-framework, functional-css, animation, css-animations, composable-animations, animxyz |

## Links

- npm: https://www.npmjs.com/package/@animxyz/react
- Repository: https://github.com/ingram-projects/animxyz
- Homepage: https://animxyz.com
- Issues: https://github.com/ingram-projects/animxyz/issues
- npm.io page: https://npm.io/package/@animxyz/react

## Dependencies (4)

- [clsx](https://npm.io/package/clsx.md) ^1.2.1
- [prop-types](https://npm.io/package/prop-types.md) ^15.8.1
- [@animxyz/core](https://npm.io/package/@animxyz/core.md) ^0.6.7
- [react-transition-group](https://npm.io/package/react-transition-group.md) ^4.4.2

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.6.9 (latest) — 2026-07-18
- 0.6.8 — 2026-07-15
- 0.6.7 — 2022-07-22
- 0.6.6 — 2022-01-12
- 0.6.4 — 2021-06-30
- 0.6.3 — 2021-06-30
- 0.6.2 — 2021-06-29
- 0.6.1 — 2021-06-23
- 0.6.0 — 2021-06-22
- 0.5.0 — 2021-02-16
- 0.4.1 — 2021-02-09
- 0.4.0 — 2021-01-17
- 0.3.0 — 2020-12-31
- 0.2.0 — 2020-12-30
- 0.2.0-alpha.1 — 2020-12-30
- … 11 more at https://npm.io/package/@animxyz/react/versions

## README

<p align="center"><a href="https://animxyz.com"><img src="https://raw.githubusercontent.com/ingram-projects/animxyz/master/site/public/animxyz-logo.svg" alt="AnimXYZ Logo" height="160"><a></p>

<h1 align="center">AnimXYZ</h1>

[![npm version](https://badge.fury.io/js/%40animxyz%2Fcore.svg)](https://www.npmjs.com/package/@animxyz/core)

[animxyz.com](https://animxyz.com)

AnimXYZ helps you create, customize, and compose animations for your website. Powered by CSS variables to allow a nearly limitless number of unique animations without writing a single keyframe. Save time and have complete control over how your elements move. Built for Vue, React, SCSS, and CSS, AnimXYZ will bring your website to life.

For example here is how you make an element fade and shrink in from above:

```html
<div class="xyz-in" xyz="fade up big">I will animate in!</div>
```
Changing the class to `xyz-out` reverses the direction of the animation:

```html
<div class="xyz-out" xyz="fade up big">I will animate out!</div>
```
[See it in action here](<https://animxyz.com/docs?tab=examples&example=Example 1#the-basics>)

For simple animations, that's all you need, but AnimXYZ can do so much more! [Check out the AnimXYZ docs!](https://animxyz.com/docs)

---
## Installation

### Using a package manager

AnimXYZ can be installed using your favorite package manager:

```bash
# with npm
npm install @animxyz/core

# with yarn
yarn add @animxyz/core
```

After installation, you will need to import AnimXYZ into your project.

#### Import into a Webpack project
If your Webpack project uses `css-loader` you can import the CSS by putting this snippet anywhere in your javascript code:

```js
import '@animxyz/core'
```

#### Import into a SASS project
AnimXYZ is built in SASS and provides useful functions and mixins for customization. Import it anywhere in your SASS code:

```scss
// Import the functions/mixins
@import '@animxyz/core';

// Add all the core/utilities selectors
@include xyz-all;
// --- Or for more control and granularity ---
@include xyz-core;
@include xyz-utilities;
```

---
### Using jsDelivr

To add AnimXYZ using a CDN put this link in the `<head>` of your `index.html` file:

```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@animxyz/core">
```

---
### Vue & React

 If you are using AnimXYZ in a Vue or React project we strongly recommend you also use our AnimXYZ components. To add those, follow the installation instructions in the relevant sections [Vue](https://animxyz.com/docs/#vue-installation) and [React](https://animxyz.com/docs/#react-installation).

---
## Made By

Miles Ingram • [GitHub](https://github.com/milesingrams) • [Website](https://milesingram.me)

Mattan Ingram • [GitHub](https://github.com/mattaningram) • [Website](https://mattaningram.com)

---
_Source: https://npm.io/package/@animxyz/react · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
