Jelajahi Sumber

fix(web): add .pillar-card to scroll-reveal observer selector

The three-pillar cards had class 'reveal' in HTML which sets opacity:0,
but the IntersectionObserver in main.js did not include .pillar-card in
its querySelectorAll list. The cards were never observed and never got
the .visible class, making them permanently invisible.
Xiaogang Liao 2 bulan lalu
induk
melakukan
d13b343a28
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      web/js/main.js

+ 1 - 1
web/js/main.js

@@ -80,7 +80,7 @@ document.addEventListener('DOMContentLoaded', () => {
   // --------------------------------------------------------
   const revealElements = document.querySelectorAll(
     '.about-card, .dimension-card, .feature-card, .role-card, ' +
-    '.stat, .contact-item, .cta-card, .product-quote'
+    '.stat, .contact-item, .cta-card, .product-quote, .pillar-card'
   );
 
   if (revealElements.length) {