1.0.0 • Published 3 years ago
vue-number-up v1.0.0
vue-number-up
A simple number-up plugin for Vue 3 with TypeScript support
How to use?
npm install vue-number-upExample
<template>
<number-up :start='start' :end='end' :duration='3000'></number-up>
</template>
<script>
import NumberUp from 'vue-number-up';
export default {
components: { NumberUp },
data () {
return {
start: 0,
end: 2023
}
}
}
</script>Options
| Property | Description | type | default |
|---|---|---|---|
| start | the value you want to begin at | Number | 0 |
| end | the value you want to arrive at | Number | 2023 |
| duration | duration in millisecond | Number | 1000 |
notes: when autoplay:true , it will auto start when start or end change
1.0.0
3 years ago