# keyframe-animating

> Keyframe animations implemented by JavaScript.

Latest version **0.1.0** (published 2017-06-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install keyframe-animating
pnpm add keyframe-animating
yarn add keyframe-animating
bun add keyframe-animating
```

## 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.1.0 |
| Published | 2017-06-14 |
| First published | 2017-06-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | akira_cn |

## Links

- npm: https://www.npmjs.com/package/keyframe-animating
- npm.io page: https://npm.io/package/keyframe-animating

## Dependencies (2)

- [color](https://npm.io/package/color.md) ^1.0.3
- [animator.js](https://npm.io/package/animator.js.md) ^0.3.1

## Recent versions

- 0.1.0 (latest) — 2017-06-14

## README

# Keyframes.js

Keyframe animations implemented by JavaScript.

## Usage

In a browser:

```html
<script src="https://s2.ssl.qhres.com/!019cd0fe/KeyFrames-0.1.0.min.js"></script>
```

[Demo](https://code.h5jun.com/pigu/1/edit?js,output)

```js
let keyframes = new KeyFrames();
keyframes.addFrames(
  {
    p: 0.25,
    frame: {
      translate: [100, 0],
    },
    easing: [0.68, -0.55, 0.265, 1.55]
  },{
    p: 0.5,
    frame: {
      color: '#fff',
      scale: 2.0,
      translate: [100, 100],
    }
  },{
    p: 0.75,
    frame: {
      bgcolor: 'red',
      translate: [0, 100],
      rotate: 170
    }
  }
);

let animation = keyframes.applyFramesTo(block, 5000);

block.addEventListener('click', function(){
  animation.animate();
});
```

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