@yxxme/vue-count-up
v1.0.1
Published
This is a vue component that will count up a target number at a specified duration
Downloads
18
Readme
vue-count-up
vue-count-up is a vue component wrap for countUp.js
How to use?
Install
npm install @yxxme/vue-count-up --save
Example
<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
start
pauseResume
reset
update
See more countUp.js
License
MIT