Files
imen_pishghaman/apps/web/app/components/ui/Reveal.vue
T

13 lines
296 B
Vue
Raw Normal View History

<script setup lang="ts">
import { motion } from "motion-v";
const props = withDefaults(defineProps<{ delay?: number }>(), { delay: 0 });
const motionProps = computed(() => fade(props.delay, 34));
</script>
<template>
<motion.div v-bind="motionProps">
<slot />
</motion.div>
</template>