mirror of
https://github.com/revanced/revanced-website.git
synced 2025-05-10 11:24:27 +02:00
fix: Make sure footer hides correctly on desktop
This commit is contained in:
parent
2a6bc70cfc
commit
5746a7d7ce
@ -16,7 +16,7 @@
|
||||
svg {
|
||||
transition: opacity 0.1s var(--bezier-one);
|
||||
position: absolute;
|
||||
bottom: 0rem;
|
||||
bottom: -1px;
|
||||
z-index: -1;
|
||||
width: 100%;
|
||||
height: 40vh;
|
||||
|
@ -11,7 +11,7 @@
|
||||
onMount(() => {
|
||||
const checkVisibility = () => {
|
||||
const wave = document.querySelector('.wave');
|
||||
bottomVisibility = !(wave && wave.getBoundingClientRect().bottom < window.innerHeight);
|
||||
bottomVisibility = !(wave && wave.getBoundingClientRect().bottom < window.innerHeight - 1);
|
||||
};
|
||||
|
||||
window.addEventListener('scroll', checkVisibility, { passive: true });
|
||||
|
Loading…
x
Reference in New Issue
Block a user