A vue component for better digital transform animation
Make your changes of digtals more funny. vue-digital-transform
npm install vue-digital-transform
<template>
<DigitalTransform :value="num" dislocation :interval="200"></DigitalTransform>
</template>
import DigitalTransform from "vue-digital-transform";
export default {
components: {
DigitalTransform,
},
data() {
return {
num: 0,
};
},
};
prop | type | description | default |
---|---|---|---|
value | Number,String | Digitals. Only allow [0-9.,] | undefined |
dislocation | Boolean | Whether every singal digital transforms in diffrent duration. | false |
interval | Number | The time that transform spends.(ms) | 500 |
useGrouping (v1.1.0+) | Boolean | Whether group the digital or not. (Only when value is pure num) | false |
Any contribution to the code or any part of the documentation and any idea and/or suggestion are very welcome.
Just pull requests!