Skip to content
Snippets Groups Projects
Unverified Commit 37ef9b70 authored by syuilo's avatar syuilo Committed by GitHub
Browse files

🎨

parent f5b8ec55
No related branches found
No related tags found
No related merge requests found
<template> <template>
<span>{{ number(tweened.number.toFixed(0)) }}</span> <span>{{ number(Math.floor(tweened.number)) }}</span>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
...@@ -16,7 +16,7 @@ const tweened = reactive({ ...@@ -16,7 +16,7 @@ const tweened = reactive({
}); });
watch(() => props.value, (n) => { 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, immediate: true,
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment