Advertisement
Igor150195

dddddd

Feb 26th, 2025
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. document.addEventListener("scroll", function () {
  2.     const section = document.querySelector(".create-doc-mobile.site-section");
  3.     if (window.scrollY > window.innerHeight) {
  4.         section.style.opacity = "1";
  5.     } else {
  6.         section.style.opacity = "0";
  7.     }
  8. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement