0.0.2 • Published 5 years ago

number-animate v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

number-animate NPM version

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)

Changelog

changelog