1
0
mirror of https://github.com/elk-zone/elk synced 2024-11-27 22:38:11 +09:00
elk/components/common/AnimateNumber.vue

15 lines
307 B
Vue
Raw Normal View History

<script setup lang="ts">
defineProps<{
2022-11-30 22:24:03 +09:00
increased?: boolean
}>()
</script>
<template>
2022-11-30 16:30:35 +09:00
<div of-hidden h="1.25rem">
<div flex="~ col" transition-transform duration-300 :class="increased ? 'translate-y--1/2' : 'translate-y-0'">
<slot />
<slot name="next" />
</div>
</div>
</template>