# @ant-design/css-animation

> css-animation

Latest version **1.7.3** (published 2020-07-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ant-design/css-animation
pnpm add @ant-design/css-animation
yarn add @ant-design/css-animation
bun add @ant-design/css-animation
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.7.3 |
| Published | 2020-07-29 |
| First published | 2020-05-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 20.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | afc163, bang88, chenshuai2144, dahong, esora, gongzhen, heskey, kn9117, tangjinzhou, vagusx, vthinkxie, wendzhue, wilsoncook, wynterding, ycjcl868, yesmeck, yutingzhao1991, zombiej |
| Keywords | css-animation |

## Links

- npm: https://www.npmjs.com/package/@ant-design/css-animation
- Repository: https://github.com/ant-design/css-animation
- Homepage: http://github.com/ant-design/css-animation
- Issues: http://github.com/ant-design/css-animation/issues
- npm.io page: https://npm.io/package/@ant-design/css-animation

## Alternatives

- [@luma.gl/experimental](https://npm.io/package/@luma.gl/experimental.md) — 77.1K weekly downloads
- [persona-harness](https://npm.io/package/persona-harness.md) — 4.7K weekly downloads
- [@tsparticles/effect-bubble](https://npm.io/package/@tsparticles/effect-bubble.md) — 4.6K weekly downloads
- [f3d](https://npm.io/package/f3d.md) — 730 weekly downloads
- [spark-html-motion](https://npm.io/package/spark-html-motion.md) — 298 weekly downloads

## Recent versions

- 1.7.3 (latest) — 2020-07-29
- 1.7.2 — 2020-05-07
- 1.7.1 — 2020-05-07
- 1.7.0 — 2020-05-07
- 1.6.0 — 2020-05-07

## README

# css-animation
---

make css animation easier

[![NPM version][npm-image]][npm-url]

[npm-image]: http://img.shields.io/npm/v/css-animation.svg?style=flat-square
[npm-url]: http://npmjs.org/package/css-animation

## Development

```
npm install
npm start
```

## Example

http://localhost:9001/examples/

online example: http://yiminghe.github.io/css-animation/


## Feature

* support ie8,ie8+,chrome,firefox,safari

## install

[![css-animation](https://nodei.co/npm/css-animation.png)](https://npmjs.org/package/css-animation)

## Usage

```js
var anim = require('css-animation');
anim(el,animationName,function(){});
```

## API

### void anim(el:DOMElement, animationName:String, callback:Function)

<table class="table table-bordered table-striped">
    <thead>
    <tr>
        <th style="width: 100px;">name</th>
        <th style="width: 50px;">type</th>
        <th style="width: 50px;">default</th>
        <th>description</th>
    </tr>
    </thead>
    <tbody>
        <tr>
          <td>el</td>
          <td>DOMElement</td>
          <td></td>
          <td>dom element to be animated</td>
        </tr>
        <tr>
          <td>animationName</td>
          <td>String|Object</td>
          <td></td>
          <td>will add animationName (if string) or animationName.name (if object) as class to el, then setTimeout 0 to add ${animationName}-active (if string) or animationName.active (if object) to el</td>
        </tr>
        <tr>
          <td>callback</td>
          <td>Function</td>
          <td></td>
          <td>triggered when anim caused by animationName is done</td>
        </tr>
    </tbody>
</table>

## Test Case

```
npm test
npm run chrome-test
```

## Coverage

```
npm run coverage
```

open coverage/ dir

## License

css-animation is released under the MIT license.

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