# animar

> a modern, focused, flexible javascript animation library.

Latest version **0.8.0** (published 2015-12-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install animar
pnpm add animar
yarn add animar
bun add animar
```

## 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.8.0 |
| Published | 2015-12-21 |
| First published | 2014-12-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Vincent Riemer |
| Maintainers | vincentriemer |
| Keywords | web, javascript, animation, additive |

## Links

- npm: https://www.npmjs.com/package/animar
- Repository: https://github.com/vincentriemer/animar
- Homepage: https://github.com/vincentriemer/animar#readme
- Issues: https://github.com/vincentriemer/animar/issues
- npm.io page: https://npm.io/package/animar

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 0.8.0 (latest) — 2015-12-21
- 0.7.1 — 2015-12-19
- 0.7.0 — 2015-12-19
- 0.6.0 — 2015-12-15
- 0.5.4 — 2015-11-27
- 0.5.3 — 2015-11-27
- 0.5.1 — 2015-11-26
- 0.4.4 — 2015-03-17
- 0.4.3 — 2015-03-06
- 0.4.2 — 2015-03-05
- 0.4.1 — 2015-03-05
- 0.4.0 — 2015-03-05
- 0.2.0 — 2014-12-31

## README

[![Build Status](https://img.shields.io/travis/vincentriemer/animar/master.svg?style=flat)](https://travis-ci.org/vincentriemer/animar) [![npm version](https://badge.fury.io/js/animar.svg)](https://badge.fury.io/js/animar)

[![bitHound Dependencies](https://www.bithound.io/github/vincentriemer/animar/badges/dependencies.svg)](https://www.bithound.io/github/vincentriemer/animar/master/dependencies/npm) [![bitHound Dev Dependencies](https://www.bithound.io/github/vincentriemer/animar/badges/devDependencies.svg)](https://www.bithound.io/github/vincentriemer/animar/master/dependencies/npm)

[![bitHound Overall Score](https://www.bithound.io/github/vincentriemer/animar/badges/score.svg)](https://www.bithound.io/github/vincentriemer/animar) [![codecov.io](https://codecov.io/github/vincentriemer/animar/coverage.svg?branch=master)](https://codecov.io/github/vincentriemer/animar?branch=master)

[![Sauce Test Status](https://saucelabs.com/browser-matrix/vincentriemer.svg)](https://saucelabs.com/u/vincentriemer)

# Animar

**NOTE**: This is still very much a work in progress (espcially in the documentation department). If you attempt to use this in its current state, you are doing so at your own risk.

## Example

```javascript
var Animar = require('animar');

// Custom easing function (Animar only defaults to a linear ease)
function quadInOut(t, b, c, d) {
  t /= d / 2;
  if (t < 1) { return c / 2 * t * t + b; }
  t--;
  return -c / 2 * (t * (t - 2) - 1) + b;
}

// Initialize the library (set the default easing function to the one created above)
var animar = new Animar({ 
  defaults: { 
    easingFunction: quadInOut 
  } 
});

// Get the target from the DOM
var target = document.getElementById('target');

// Construct an animation chain and start it immediately.
animar.add(target, { translateX: [0, 300], translateY: [0, 300] })
      .then() // Any animation added after this point will start after the previous ones have finished
      .add(target, { translateX: [300, 0], translateY: [300, 0], { delay: -30 }) // set a negative delay to make it begin sooner than the time the previous step ends.
      .start();
```

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