Skip to content

Commit abddb39

Browse files
committed
Clean up terminal cursor animation: move to main SCSS, remove duplicates and unused typing animation
1 parent 31059a5 commit abddb39

File tree

2 files changed

+12
-24
lines changed

2 files changed

+12
-24
lines changed

assets/css/style.scss

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,13 @@ p {
353353
.hero-image {
354354
}
355355

356+
.terminal-cursor {
357+
display: inline-block;
358+
animation: blink 1s step-end infinite;
359+
color: var(--gold-primary);
360+
font-weight: bold;
361+
}
362+
356363
.profile-image-wrapper {
357364
position: relative;
358365
width: 300px;
@@ -607,21 +614,14 @@ p {
607614
}
608615
}
609616

610-
@keyframes typing {
611-
0% {
612-
width: 0;
613-
}
614-
100% {
615-
width: 100%;
616-
}
617-
}
617+
618618

619619
@keyframes blink {
620-
0%, 50% {
621-
border-color: var(--gold-primary);
620+
0%, 50% {
621+
opacity: 1;
622622
}
623-
51%, 100% {
624-
border-color: transparent;
623+
51%, 100% {
624+
opacity: 0;
625625
}
626626
}
627627

index.html

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -92,18 +92,6 @@ <h3>Connect</h3>
9292
</section>
9393

9494
<style>
95-
.terminal-cursor {
96-
display: inline-block;
97-
animation: blink 1s step-end infinite;
98-
color: var(--gold-primary);
99-
font-weight: bold;
100-
}
101-
102-
@keyframes blink {
103-
0%, 50% { opacity: 1; }
104-
51%, 100% { opacity: 0; }
105-
}
106-
10795
.hero-title, .hero-subtitle, .hero-description {
10896
min-height: 1.2em;
10997
}

0 commit comments

Comments
 (0)