1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-09-06 12:19:08 +01:00
elk/components/common/AnimateNumber.vue

20 lines
349 B
Vue
Raw Normal View History

<script setup lang="ts">
defineProps<{
increased: boolean
}>()
</script>
<template>
<div overflow-hidden h="1.25rem">
<div
transition="duration-300 transform"
:style="{
transform: increased ? 'translateY(-50%)' : 'translateY(0%)',
}"
>
<slot />
<slot name="next" />
</div>
</div>
</template>