# vue-numbers-animation

> Directive to animate changes of numerical property

Latest version **1.0.7** (published 2021-12-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-numbers-animation
pnpm add vue-numbers-animation
yarn add vue-numbers-animation
bun add vue-numbers-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 | 1.0.7 |
| Published | 2021-12-26 |
| First published | 2021-07-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=12 |
| Dependencies | 1 |
| Unpacked size | 24.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | keeveeg |
| Keywords | vue, transition, directive, number, numbers, animation |

## Links

- npm: https://www.npmjs.com/package/vue-numbers-animation
- Repository: https://github.com/keeveeg/vue-numbers-animation
- Homepage: https://github.com/keeveeg/vue-numbers-animation#readme
- Issues: https://github.com/keeveeg/vue-numbers-animation/issues
- npm.io page: https://npm.io/package/vue-numbers-animation

## Dependencies (1)

- [interpolate-all](https://npm.io/package/interpolate-all.md) ^1.0.1

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.0.7 (latest) — 2021-12-26
- 1.0.6 — 2021-12-26
- 1.0.5 — 2021-12-26
- 1.0.4 — 2021-07-20
- 1.0.2 — 2021-07-18
- 1.0.1 — 2021-07-18
- 1.0.0 — 2021-07-18

## README

## Installation
```sh
$ npm install --save vue-numbers-animation
```

## Usage
Just import:

```javascript
import numbersAnimation from 'vue-numbers-animation'
Vue.directive("numbers-animation", numbersAnimation)
```

And use:
```javascript
// default animation is linear
// default time is 1000
<div v-numbers-animation="count"></div> 
```
![image](https://user-images.githubusercontent.com/35378637/126076858-2c146a5d-4511-4cbb-b9d9-7680de31d98d.gif)

or
```javascript
<div v-numbers-animation:easeOutElastic="{value: count, time: 2500}"></div>
```
![image](https://user-images.githubusercontent.com/35378637/126076896-139e5454-28cf-477f-96bb-da36bae4aad3.gif)


## Animations
![image](https://user-images.githubusercontent.com/35378637/126076223-8a49f283-4912-4eef-831e-7b7563043d7b.jpg)

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