From ee92ac06c59c546cdda511b2c69d1c29aedf3b3d Mon Sep 17 00:00:00 2001 From: desafinadude Date: Tue, 3 Dec 2024 11:37:51 +0200 Subject: [PATCH] embed fix --- script2.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/script2.js b/script2.js index 19b3a8d..cbdc5ab 100644 --- a/script2.js +++ b/script2.js @@ -42,6 +42,13 @@ document.addEventListener('DOMContentLoaded', function () { } + + // INIT SHOW CAPTIONS + + document.querySelectorAll('.scrolly-section .scrolly-caption-box').forEach((caption) => { + caption.style.opacity = 1; + }); + // MEDIA QUERIES const mediaQuery = window.matchMedia('(max-width: 768px)');