1.0.1 • Published 4 years ago
@yxxme/vue-count-up v1.0.1
vue-count-up
vue-count-up is a vue component wrap for countUp.js
How to use?
Install
npm install @yxxme/vue-count-up --saveExample
<template>
  <count-up :endVal='endVal' />
</template>
<script>
  import CountUp from '@yxxme/vue-count-up';
  export default {
    components: { CountUp },
    data () {
      return {
        endVal: 654321
      }
    }
  }
</script>Properties
endVal: Number- the value you want to arrive at.startVal?: Number- the value you want to begin at.autoplay?: Boolean- when mounted autoplay.delay?: Number- when autoplay is true, this value represents how long to wait before starting.options?: Object- other options, see more countUp.js.
Methods
startpauseResumeresetupdate
See more countUp.js
License
MIT
1.0.1
4 years ago