Random responsive improvements
This commit is contained in:
15 files changed
+373
-50
No files matched your search
@@ -16,6 +16,12 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
|
||||
if (navbar || punch || homeTitle) {
|
||||
let lastScrollY = window.scrollY;
|
||||
|
||||
window.addEventListener('mousemove', (event) => {
|
||||
if (navbar && event.clientY < 100) {
|
||||
navbar.style.top = '0';
|
||||
}
|
||||
});
|
||||
|
||||
window.addEventListener('scroll', () => {
|
||||
let currentScrollY = window.scrollY;
|
||||
|
||||
Reference in new issue
Block a user