jizai1125/vue-countup-v3

翻牌器效果能否实现

Opened this issue · 1 comments

你好,请问该组件能实现这个效果么
image

可以用插件 Odometer plugin

<script setup lang="ts">
  import { ref } from 'vue'
  import CountUp, { type CountUpOptions } from 'vue-countup-v3'
  import { Odometer } from 'odometer_countup';

  const endValueRef = ref(2022)
  // coutup.js options
  const options: CountUpOptions = {
     plugin: new Odometer({ duration: 2.3, lastDigitDelay: 0 }),
  }
</script>

<template>
  <count-up 
    :end-val="endValueRef"
    :options="options"></count-up>
</template>