mirror of
https://github.com/handsomezhuzhu/personal-navigation-site.git
synced 2026-04-18 14:22:53 +00:00
feat: animate text-shadow for gradient glow effect
Text shadow color transitions with cycle: green → blue → purple → dark blue. Co-authored-by: Simon <85533298+handsomezhuzhu@users.noreply.github.com>
This commit is contained in:
@@ -124,33 +124,18 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Cyber gradient flow animation */
|
/* Cyber glow animation - 文字白色,光晕颜色流动 */
|
||||||
@keyframes gradient-flow {
|
@keyframes glow-flow {
|
||||||
0% {
|
0% { text-shadow: 0 0 12px oklch(0.75 0.18 180 / 0.9), 0 0 30px oklch(0.75 0.18 180 / 0.5), 0 0 60px oklch(0.75 0.18 180 / 0.2); }
|
||||||
background-position: 0% 50%;
|
25% { text-shadow: 0 0 12px oklch(0.70 0.20 220 / 0.9), 0 0 30px oklch(0.70 0.20 220 / 0.5), 0 0 60px oklch(0.70 0.20 220 / 0.2); }
|
||||||
}
|
50% { text-shadow: 0 0 12px oklch(0.65 0.22 280 / 0.9), 0 0 30px oklch(0.65 0.22 280 / 0.5), 0 0 60px oklch(0.65 0.22 280 / 0.2); }
|
||||||
50% {
|
75% { text-shadow: 0 0 12px oklch(0.72 0.20 240 / 0.9), 0 0 30px oklch(0.72 0.20 240 / 0.5), 0 0 60px oklch(0.72 0.20 240 / 0.2); }
|
||||||
background-position: 100% 50%;
|
100% { text-shadow: 0 0 12px oklch(0.75 0.18 180 / 0.9), 0 0 30px oklch(0.75 0.18 180 / 0.5), 0 0 60px oklch(0.75 0.18 180 / 0.2); }
|
||||||
}
|
|
||||||
100% {
|
|
||||||
background-position: 0% 50%;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.cyber-title {
|
.cyber-title {
|
||||||
background: linear-gradient(
|
color: oklch(0.98 0 0);
|
||||||
90deg,
|
animation: glow-flow 6s ease infinite;
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Animation utilities */
|
/* Animation utilities */
|
||||||
|
|||||||
Reference in New Issue
Block a user