Skip to content

Commit 4e070c2

Browse files
authored
Merge pull request #522 from Rishika3D/ui/moving-gradient-text
added gradient in the contribution word at the front page
2 parents 7f3fd9a + 55f4d08 commit 4e070c2

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

src/components/App.astro

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ import SocialShare from './SocialShare.astro';
3737
}
3838

3939
.App-header a {
40-
text-decoration: unset;
41-
color: unset;
40+
text-decoration: none;
41+
color: inherit;
4242
}
4343

4444
.App-header > h1 {
@@ -50,10 +50,24 @@ import SocialShare from './SocialShare.astro';
5050
}
5151

5252
.App-header > h1 span {
53-
background: linear-gradient(to right, #60a5fa, #1d4ed8);
53+
background: linear-gradient(90deg, #60a5fa, #1d4ed8, #60a5fa);
54+
background-size: 200% 200%;
5455
-webkit-background-clip: text;
5556
-webkit-text-fill-color: transparent;
5657
background-clip: text;
58+
animation: gradientShift 4s ease infinite;
59+
}
60+
61+
@keyframes gradientShift {
62+
0% {
63+
background-position: 0% 50%;
64+
}
65+
50% {
66+
background-position: 100% 50%;
67+
}
68+
100% {
69+
background-position: 0% 50%;
70+
}
5771
}
5872

5973
@media (max-width: 700px) {

0 commit comments

Comments
 (0)