Skip to content

Commit abaf61b

Browse files
committed
Fix issue with sections being invisible by default
1 parent a2b9849 commit abaf61b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

www/assets/css/design-refinements.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@ main {
101101
animation: fadeIn 0.5s ease-in-out;
102102
}
103103

104-
/* Section transitions */
105-
section {
104+
/* Section transitions - only apply when JS is available */
105+
.js-enabled section {
106106
opacity: 0;
107107
transform: translateY(20px);
108108
transition: opacity 0.6s ease, transform 0.6s ease;
109109
}
110110

111-
section.visible {
111+
.js-enabled section.visible {
112112
opacity: 1;
113113
transform: translateY(0);
114114
}

www/assets/js/main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// IPCrypt Website JavaScript
22

3+
// Add js-enabled class to body as soon as possible
4+
document.documentElement.classList.add('js-enabled');
5+
36
document.addEventListener('DOMContentLoaded', function () {
47
// Handle implementation card clicks
58
const implementationCards = document.querySelectorAll('.implementation-card');

0 commit comments

Comments
 (0)