File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 11// IPCrypt Website JavaScript
22
3+ // Add js-enabled class to body as soon as possible
4+ document . documentElement . classList . add ( 'js-enabled' ) ;
5+
36document . addEventListener ( 'DOMContentLoaded' , function ( ) {
47 // Handle implementation card clicks
58 const implementationCards = document . querySelectorAll ( '.implementation-card' ) ;
You can’t perform that action at this time.
0 commit comments