# css-animation

> css-animation

Latest version **2.0.4** (published 2019-08-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install css-animation
pnpm add css-animation
yarn add css-animation
bun add 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 | 2.0.4 |
| Published | 2019-08-22 |
| First published | 2015-06-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 73.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 90 |
| Maintainers | yiminghe |
| Keywords | css-animation |

## Links

- npm: https://www.npmjs.com/package/css-animation
- Repository: https://github.com/yiminghe/css-animation
- Homepage: http://github.com/yiminghe/css-animation
- Issues: http://github.com/yiminghe/css-animation/issues
- npm.io page: https://npm.io/package/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

- 2.0.4 (latest) — 2019-08-22
- 2.0.3 — 2019-08-12
- 2.0.2 — 2019-07-30
- 2.0.1 — 2019-07-28
- 2.0.0 — 2019-07-28
- 1.6.1 — 2019-07-28
- 1.6.0 — 2019-07-27
- 1.5.0 — 2018-11-12
- 1.4.1 — 2017-08-16
- 1.4.0 — 2017-08-16
- 1.3.2 — 2017-02-08
- 1.3.1 — 2017-01-06
- 1.3.0 — 2016-08-01
- 1.2.6 — 2016-07-19
- 1.2.5 — 2016-04-29
- … 12 more at https://npm.io/package/css-animation/versions

## 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:6006/

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
import anim from '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>

## License

css-animation is released under the MIT license.

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