# totalizer

> Totalizer JS

Latest version **0.1.0** (published 2020-12-24) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2020-12-24 |
| First published | 2020-12-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 64.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 80 |
| Author | Z8264 |
| Maintainers | z8264 |
| Keywords | animation |

## Links

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

## Alternatives

- [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
- [react-scroll-snap-anime-slider](https://npm.io/package/react-scroll-snap-anime-slider.md) — 214 weekly downloads

## Recent versions

- 0.1.0 (latest) — 2020-12-24
- 0.0.6-beta — 2020-12-21
- 0.0.5-beta — 2020-12-21
- 0.0.4-beta — 2020-12-15
- 0.0.3-beta — 2020-12-11
- 0.0.2-beta — 2020-12-06
- 0.0.1-beta — 2020-12-04

## README

<h2 align="center">
  Totalizer JS
</h2>

<p align="center"><a href="//totalizer-js.github.io" target="_blank" />totalizer-js.github.io</a>
</p>

<p align="center">
  <img src="https://img.shields.io/npm/dm/totalizer.svg" alt="Downloads"></a>
  <a href="https://www.npmjs.com/package/totalizer"><img src="https://img.shields.io/npm/v/totalizer.svg" alt="Version"></a>
  <img src="https://img.shields.io/npm/l/totalizer.svg" alt="License">
</p>


Totalizer JS provides a simple DOM & SVG animation description, and a mechanism for managing multiple animation descriptions. It was originally designed to create a core animation 
abstraction layer for building complex animation interaction components.

<p align="center">
  <img src="https://totalizer-js.github.io/assets/img/show.8c1956b1.gif" alt="totalizer">
</p>

## Installation

``` shell
npm i -S totalizer
```

## Usage

Import totalizer

``` javascript
import Totalizer from 'totalizer';
```

Create a Totalizer instance

``` javascript
conat animation = new Totalizer();
```

Add an animation description

``` javascript
animation.add({
  el: document.getElementById("div"),   // the target node
  props: {
    translateX: [0, 300],               // translateX from '0px' to '300px'
    scale: [0.4, 1],                    // scale from 0.4 to 1 
    rotate: [0, 720],                   // rotate from 0deg to 720deg
    background: ["#ddd", "#08c"],       // background from '#ddd' to '#08c' 
  },
  delay: 300,                           // delay
  endDelay: 300,                        // endDelay
  duration: 2000,                       // duration
  easing: 'easeOutBounce',              // easing
})
```

Control the animation instance

``` javascript
animation.loop().alternate().play();
```

## Documents

For more, visit the official documentation

[totalizer-js.github.io](//totalizer-js.github.io)
## License

MIT

Copyright (c) 2020-present, Z8264

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