Skip to content

Commit 3abe9de

Browse files
committed
Fix mobile hero section by disabling typewriter effect on small screens
1 parent 435da6b commit 3abe9de

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

index.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,37 @@ <h3>Connect</h3>
174174
opacity: 0;
175175
animation: fade-in 0.4s ease-in 2.6s forwards;
176176
}
177+
178+
/* Mobile: disable typewriter effect for better readability */
179+
@media (max-width: 768px) {
180+
.typewriter,
181+
.typewriter-delay-1 {
182+
animation: none !important;
183+
width: auto !important;
184+
white-space: normal !important;
185+
overflow: visible !important;
186+
opacity: 1 !important;
187+
}
188+
189+
.typewriter::after,
190+
.typewriter-delay-1::after {
191+
display: none !important;
192+
}
193+
194+
.typewriter-delay-2 {
195+
animation: none !important;
196+
opacity: 1 !important;
197+
}
198+
199+
.typewriter-delay-2::after {
200+
display: none !important;
201+
}
202+
203+
.fade-in-after-typing {
204+
animation: none !important;
205+
opacity: 1 !important;
206+
}
207+
}
177208
</style>
178209

179210
<script>

0 commit comments

Comments
 (0)