mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-01-26 11:54:13 +01:00
Add animation to CatchPhrase.vue
This commit is contained in:
@@ -2,10 +2,10 @@
|
|||||||
<ClientOnly>
|
<ClientOnly>
|
||||||
<div
|
<div
|
||||||
v-if="width > 1024"
|
v-if="width > 1024"
|
||||||
class="text-[12px] italic flex items-center gap-1"
|
class="group text-[12px] italic flex items-center gap-1"
|
||||||
>
|
>
|
||||||
<UIcon
|
<UIcon
|
||||||
class="transform -rotate-12"
|
class="transform -rotate-12 duration-300 group-hover:animate-wave"
|
||||||
name="i-ph-hand-pointing-duotone"
|
name="i-ph-hand-pointing-duotone"
|
||||||
/>
|
/>
|
||||||
<p>Hover some of the bold text to find out more about me.</p>
|
<p>Hover some of the bold text to find out more about me.</p>
|
||||||
|
|||||||
@@ -16,5 +16,22 @@ export default <Partial<Config>>{
|
|||||||
'./app.config.{js,ts}',
|
'./app.config.{js,ts}',
|
||||||
'content/**/*.md'
|
'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]
|
plugins: [typography]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user