Copied a lot of stuff from my template repo
This commit is contained in:
@@ -1 +1,9 @@
|
||||
console.log(1);
|
||||
// Scroll Listener
|
||||
if (document.body.classList.contains("hero")) {
|
||||
window.addEventListener("scroll", function () {
|
||||
if (window.scrollY > 10)
|
||||
document.body.classList.add("scroll");
|
||||
else
|
||||
document.body.classList.remove("scroll");
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user