Skip to content

Commit c78626c

Browse files
committed
style(header): replace gradient shine with underline reveal animation
1 parent dacca78 commit c78626c

File tree

1 file changed

+8
-21
lines changed

1 file changed

+8
-21
lines changed

style.css

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -193,28 +193,15 @@ header h1 {
193193
font-weight: 800;
194194
margin: 0;
195195
padding: 0.5rem 0;
196-
background: linear-gradient(
197-
90deg,
198-
var(--header) 0%,
199-
var(--header) 30%,
200-
#f78166 45%,
201-
#f78166 55%,
202-
var(--header) 70%,
203-
var(--header) 100%
204-
);
205-
background-size: 300% auto;
206-
-webkit-text-fill-color: transparent;
207-
background-clip: text;
208-
animation: shine 18s linear infinite;
196+
color: var(--header);
197+
border-bottom: 2px solid transparent;
198+
display: inline;
199+
animation: underline-reveal 3s ease-in-out 1s forwards;
209200
}
210201

211-
@keyframes shine {
212-
0% {
213-
background-position: 100% center;
214-
}
215-
216-
100% {
217-
background-position: 0% center;
202+
@keyframes underline-reveal {
203+
to {
204+
border-bottom-color: #f78166;
218205
}
219206
}
220207

@@ -567,6 +554,6 @@ footer ul li img:hover {
567554
}
568555

569556
header h1 {
570-
color: black;
557+
color: var(--header);
571558
}
572559
}

0 commit comments

Comments
 (0)