fine tune UI

This commit is contained in:
KOWX712
2024-11-04 23:42:15 +08:00
parent 4a9650bd54
commit 55406e377a
2 changed files with 4 additions and 4 deletions

View File

@@ -231,8 +231,8 @@ const menu = document.querySelector('.menu');
window.addEventListener('scroll', () => {
if (window.scrollY > lastScrollY) {
title.style.transform = 'translateY(-100%)';
searchCard.style.transform = 'translateY(-40px)';
menu.style.transform = 'translateY(-40px)';
searchCard.style.transform = 'translateY(-35px)';
menu.style.transform = 'translateY(-35px)';
} else {
title.style.transform = 'translateY(0)';
searchCard.style.transform = 'translateY(0)';