mirror of
https://github.com/handsomezhuzhu/personal-navigation-site.git
synced 2026-04-18 22:32:52 +00:00
feat: replace glitch flicker with smooth color gradient animation
Update title with decryption effect and continuous color cycle animation. Co-authored-by: Simon <85533298+handsomezhuzhu@users.noreply.github.com>
This commit is contained in:
@@ -124,3 +124,32 @@
|
||||
@apply bg-background text-foreground;
|
||||
}
|
||||
}
|
||||
|
||||
/* Cyber gradient flow animation */
|
||||
@keyframes gradient-flow {
|
||||
0% {
|
||||
background-position: 0% 50%;
|
||||
}
|
||||
50% {
|
||||
background-position: 100% 50%;
|
||||
}
|
||||
100% {
|
||||
background-position: 0% 50%;
|
||||
}
|
||||
}
|
||||
|
||||
.cyber-title {
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
oklch(0.75 0.12 180),
|
||||
oklch(0.7 0.15 220),
|
||||
oklch(0.65 0.18 280),
|
||||
oklch(0.7 0.15 320),
|
||||
oklch(0.75 0.12 180)
|
||||
);
|
||||
background-size: 300% 100%;
|
||||
animation: gradient-flow 6s ease infinite;
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user