Skip to content

Commit f5ba297

Browse files
committed
Fix multiple cursors by hiding first cursor when second element starts
1 parent 3abe9de commit f5ba297

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

index.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ <h3>Connect</h3>
105105
.typewriter::after {
106106
content: '_';
107107
color: var(--gold-primary);
108-
animation: blink-caret 0.75s step-end infinite;
108+
animation:
109+
blink-caret 0.75s step-end infinite,
110+
hide-cursor-0 0s 0.9s forwards;
109111
}
110112

111113
.typewriter-delay-1 {
@@ -151,6 +153,13 @@ <h3>Connect</h3>
151153
50% { opacity: 1; }
152154
}
153155

156+
@keyframes hide-cursor-0 {
157+
to {
158+
content: '';
159+
display: none;
160+
}
161+
}
162+
154163
@keyframes hide-cursor-1 {
155164
to {
156165
content: '';

0 commit comments

Comments
 (0)