# animate-element

> Easily animate CSS properties using requestAnimationFrame

Latest version **0.0.4** (published 2018-05-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install animate-element
pnpm add animate-element
yarn add animate-element
bun add animate-element
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2018-05-09 |
| First published | 2018-04-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 92.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jorrit Tinholt |
| Maintainers | dejorrit |
| Keywords | css, animation, css-animation, requestanimationframe, transform |

## Links

- npm: https://www.npmjs.com/package/animate-element
- Repository: https://github.com/dejorrit/animate-element
- Homepage: https://github.com/dejorrit/animate-element#readme
- Issues: https://github.com/dejorrit/animate-element/issues
- npm.io page: https://npm.io/package/animate-element

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 0.0.4 (latest) — 2018-05-09
- 0.0.3 — 2018-04-09
- 0.0.2 — 2018-04-09
- 0.0.1 — 2018-04-09

## README

Animate-element
===

Easily transform CSS properties using requestAnimationFrame

## Installation

```
$ yarn add animate-element
```

or 

```
$ npm install animate-element
```

## Usage

```javascript
import AnimateElement from 'animate-element';
 
let myElement = document.getElementById('#myElement');
 
new AnimateElement(myElement, {
	width:   100,  
	height:  200,  
	opacity: .75,  
}, {
	duration: 250,
	easing: false,
}).then(() => console.log('Completed Animation'));

```

As you can see a promise is returned.

Note: values are absolute. So setting a width of `100`  means the element 
will animate untill it is `100px` wide, regardless of the current width of 
the element.

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