Created
October 7, 2024 09:04
-
-
Save webnitros/73a4600d58436682b5eead19bc9b2999 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var fired = false // Блокировка от повторнрого запуска, устарнавливает true после инициализации | |
window.addEventListener('scroll', () => { | |
if (fired === false) { | |
fired = true | |
// Тут код для запуска | |
} | |
}) | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment