number-animate
v0.0.2
Published
A simple number animate plugin.
Downloads
5
Readme
number-animate [![NPM version][npm-version-image]][npm-version-url]
Install
Pick your favorite:
<script src="dist/number-animate.min.js"></script>
<!-- or -->
<script src="https://unpkg.com/number-animate"></script>
$ yarn add number-animate
# or
$ npm i number-animate -S
const NumberAnimate = require('number-animate')
// or
import NumberAnimate from 'number-animate'
Usage
const numberAnimate = new NumberAnimate(selector, options)
- selector such as
.selector
,#selector
- options
- number
- duration
- type
- mode
- autoplay
- separator
- decimal
- decimals
Api
resetData
numberAnimate.resetData(num)