1.0.0 • Published 2 years ago

vue-number-up v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

vue-number-up

A simple number-up plugin for Vue 3 with TypeScript support

How to use?

npm install vue-number-up

Example

<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

PropertyDescriptiontypedefault
startthe value you want to begin atNumber0
endthe value you want to arrive atNumber2023
durationduration in millisecondNumber1000

notes: when autoplay:true , it will auto start when start or end change

1.0.0

2 years ago