vue 数字跳动效果
<template>
<div class="login-wrap">
<animate-number
from="0"
:to="today"
duration="200"
easing="easeOutQuad"
from-color="#44CC00"
to-color="#ec4949"
style="font-size:30px;text-align:center;display:block;">
</animate-number>
</div>
</template>
<script>
export default {
name:'test',
data: function(){
return {
today:200,
}
},
methods: {
},
mounted:function () {
}
}
</script>
<style scoped>
</style>
相信坚持的力量,日复一日的习惯.