feat: enhance animations in Main and index components; add @vueuse/motion dependency

This commit is contained in:
2025-09-03 13:10:27 +02:00
parent ddd0b12107
commit 3e7aaba2f3
5 changed files with 112 additions and 13 deletions

View File

@@ -1,18 +1,39 @@
<script lang="ts" setup>
</script>
<template>
<div class="flex flex-col my-16 md:my-32">
<h1 class="font-bold text-3xl sm:text-4xl">
<h1
v-motion
:initial="{
opacity: 0,
y: 100,
scale: 0.6,
}"
:enter="{
opacity: 1,
y: 0,
scale: 1,
}"
class="font-bold text-3xl sm:text-4xl"
>
Welcome to ArtChat
</h1>
<h3 class="text-3xl sm:text-4xl bg-gradient-to-r from-inverted/40 to-inverted/75 to-50% bg-clip-text text-transparent font-medium">
<h3
v-motion
:initial="{
opacity: 0,
y: 200,
scale: 0.6,
}"
:enter="{
opacity: 1,
y: 0,
scale: 1,
transition: {
delay: 400,
},
}"
class="text-3xl sm:text-4xl bg-gradient-to-r from-inverted/40 to-inverted/75 to-50% bg-clip-text text-transparent font-medium"
>
Ask me anything about Arthur DANJOU
</h3>
</div>
</template>
<style scoped>
</style>