0.1.4 • Published 3 years ago

vue-ani-number v0.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

vue-ani-number

A Vue 3 component, provide a convenient and light-weight number animation.

Demo

avatar

Requirements

  • vue.js 3.x

Installation

yarn add vue-ani-number

or

npm install vue-ani-number

Usage

  • use plugin
import { createApp } from 'vue';
import App from './App.vue';
import VueAniNumber from 'vue-ani-number'

createApp(App).use(VueAniNumber).mount('#app');
  • animation would be triggered by number changes
<template>
  <vue-ani-number :number="number" />
</template>
export default {
  name: "App",
  data() {
    return {
      number: 0
    }
  },
  mounted() {
    this.$nextTick(() => {
      this.number = 88888
      window.setTimeout(() => {
        this.number = 545876
      }, 5000)
    })
  }
};

Customize configuration

See Configuration Reference.

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago