Design
This commit is contained in:
@@ -14,11 +14,14 @@ export interface Props {
|
||||
const { title } = Astro.props;
|
||||
---
|
||||
|
||||
<script>
|
||||
const skala = document.getElementById("skala");
|
||||
|
||||
if (!skala?.classList.contains("no-scroll")) {
|
||||
<script>
|
||||
window.addEventListener("scroll", (event) => {
|
||||
const skala = document.getElementById("skala");
|
||||
|
||||
if (skala?.classList.contains("no-scroll")) {
|
||||
return;
|
||||
}
|
||||
|
||||
let scroll = window.scrollY;
|
||||
if (scroll >= 400) {
|
||||
if (skala) {
|
||||
@@ -63,7 +66,6 @@ const { title } = Astro.props;
|
||||
?.classList.remove("2xl:mt-[370px]");
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<html lang="de">
|
||||
|
||||
Reference in New Issue
Block a user