Skip to content

Commit

Permalink
🎨
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo committed Dec 31, 2022
1 parent f5b8ec5 commit 37ef9b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/frontend/src/components/MkNumber.vue
@@ -1,5 +1,5 @@
<template>
<span>{{ number(tweened.number.toFixed(0)) }}</span>
<span>{{ number(Math.floor(tweened.number)) }}</span>
</template>

<script lang="ts" setup>
Expand All @@ -16,7 +16,7 @@ const tweened = reactive({
});
watch(() => props.value, (n) => {
gsap.to(tweened, { duration: 0.5, number: Number(n) || 0 });
gsap.to(tweened, { duration: 1, number: Number(n) || 0 });
}, {
immediate: true,
});
Expand Down

0 comments on commit 37ef9b7

Please sign in to comment.