Add animation to CatchPhrase.vue

This commit is contained in:
2024-07-02 00:52:07 +02:00
parent ea30a01cf1
commit 0dbeec5691
2 changed files with 19 additions and 2 deletions

View File

@@ -2,10 +2,10 @@
<ClientOnly>
<div
v-if="width > 1024"
class="text-[12px] italic flex items-center gap-1"
class="group text-[12px] italic flex items-center gap-1"
>
<UIcon
class="transform -rotate-12"
class="transform -rotate-12 duration-300 group-hover:animate-wave"
name="i-ph-hand-pointing-duotone"
/>
<p>Hover some of the bold text to find out more about me.</p>

View File

@@ -16,5 +16,22 @@ export default <Partial<Config>>{
'./app.config.{js,ts}',
'content/**/*.md'
],
theme: {
extend: {
animation: {
wave: 'wave 3s infinite'
},
keyframes: {
wave: {
'0%, 50%, 100%': {
transform: 'rotate(-12deg)'
},
'25%, 75%': {
transform: 'rotate(12deg) scale(1.5)'
}
}
}
}
},
plugins: [typography]
}