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 {
|
svg {
|
||||||
transition: opacity 0.1s var(--bezier-one);
|
transition: opacity 0.1s var(--bezier-one);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0rem;
|
bottom: -1px;
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 40vh;
|
height: 40vh;
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
onMount(() => {
|
onMount(() => {
|
||||||
const checkVisibility = () => {
|
const checkVisibility = () => {
|
||||||
const wave = document.querySelector('.wave');
|
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 });
|
window.addEventListener('scroll', checkVisibility, { passive: true });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user