Skip to content

Commit f9b6a7d

Browse files
committed
feat(style.css): animmate the header text
1 parent 866c850 commit f9b6a7d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/style.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ nav h1 {
5151
-webkit-text-fill-color: transparent;
5252
background-clip: text;
5353
cursor: pointer;
54+
animation: moveColor 500ms ease-in infinite alternate;
5455
}
5556

5657
.menu {
@@ -322,6 +323,21 @@ a {
322323
color: var(--text-color);
323324
}
324325

326+
@keyframes moveColor {
327+
0% {
328+
background: linear-gradient(26deg, rgb(255, 255, 255), rgb(105, 143, 216));
329+
-webkit-background-clip: text;
330+
-webkit-text-fill-color: transparent;
331+
background-clip: text;
332+
}
333+
100% {
334+
background: linear-gradient(272deg, rgb(255, 255, 255), rgb(105, 143, 216));
335+
-webkit-background-clip: text;
336+
-webkit-text-fill-color: transparent;
337+
background-clip: text;
338+
}
339+
}
340+
325341
@media screen and (max-width: 1300px) and (min-width: 1009px) {
326342
:root {
327343
--modal-width: calc(var(--modal-container-width) - 20vw);

0 commit comments

Comments
 (0)