We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a6bc70 commit 5746a7dCopy full SHA for 5746a7d
src/lib/components/Wave.svelte
@@ -16,7 +16,7 @@
16
svg {
17
transition: opacity 0.1s var(--bezier-one);
18
position: absolute;
19
- bottom: 0rem;
+ bottom: -1px;
20
z-index: -1;
21
width: 100%;
22
height: 40vh;
src/routes/+page.svelte
@@ -11,7 +11,7 @@
11
onMount(() => {
12
const checkVisibility = () => {
13
const wave = document.querySelector('.wave');
14
- bottomVisibility = !(wave && wave.getBoundingClientRect().bottom < window.innerHeight);
+ bottomVisibility = !(wave && wave.getBoundingClientRect().bottom < window.innerHeight - 1);
15
};
window.addEventListener('scroll', checkVisibility, { passive: true });
0 commit comments