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