Skip to content

Commit 5689c0c

Browse files
committed
Add performance hints and responsive fixes
- Add will-change hints to sections, carousel, scroll indicator, and sidebar overlay for GPU compositing - Add padding-bottom to sections to prevent content clipping behind fixed contact bar - Hide profile photo on narrow mobile viewports (≤480px) to prevent crowding
1 parent 996fe7e commit 5689c0c

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,11 @@
267267
opacity: 0;
268268
visibility: hidden;
269269
transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, background-color 0.8s ease-in-out, color 0.8s ease-in-out;
270+
will-change: opacity;
270271
overflow-y: auto;
271272
scroll-behavior: smooth;
272273
-webkit-overflow-scrolling: touch;
274+
padding-bottom: 52px;
273275
}
274276

275277
section.active {
@@ -522,6 +524,7 @@
522524
height: 16px;
523525
stroke: var(--text-muted);
524526
animation: bounce 2s infinite;
527+
will-change: transform;
525528
}
526529

527530
@keyframes bounce {
@@ -562,6 +565,7 @@
562565
opacity: 0;
563566
visibility: hidden;
564567
transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
568+
will-change: opacity;
565569
}
566570

567571
.photo-carousel-wrapper.visible {
@@ -585,6 +589,7 @@
585589
width: max-content;
586590
height: 100%;
587591
animation: scroll-left 1200s linear infinite;
592+
will-change: transform;
588593
}
589594

590595
.photo-carousel-track:hover {
@@ -924,6 +929,7 @@
924929
opacity: 0;
925930
visibility: hidden;
926931
transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.8s ease-in-out;
932+
will-change: opacity;
927933
}
928934

929935
.sidebar.menu-open {
@@ -1098,6 +1104,14 @@
10981104
.item-description {
10991105
font-size: 12px;
11001106
}
1107+
1108+
.profile-photo {
1109+
display: none;
1110+
}
1111+
1112+
.contact-links {
1113+
margin-left: 0;
1114+
}
11011115
}
11021116

11031117
/* Touch-friendly scrollbar on mobile */

0 commit comments

Comments
 (0)