Fix
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Joakim Svensson 2025-05-09 17:27:31 +00:00
parent bd1fb6c500
commit fd6d134fbf
2 changed files with 15 additions and 8 deletions

View File

@ -11,13 +11,16 @@ title: Start
window.scrollTo({ top: y, behavior: 'smooth' });
}
// Göm knappen vid scroll
window.addEventListener('scroll', () => {
const button = document.getElementById('scrollButton');
if (window.scrollY > 10) {
button.style.display = 'none';
}
});
window.addEventListener('scroll', () => {
const button = document.getElementById('scrollButton');
if (window.scrollY > 10) {
button.style.opacity = '0';
button.style.pointerEvents = 'none';
} else {
button.style.opacity = '1';
button.style.pointerEvents = 'auto';
}
});
</script>
<script>

View File

@ -39,4 +39,8 @@
.md-header,
.md-tabs {
transition: transform 0.3s ease;
}
}
#scrollButton {
transition: opacity 0.3s ease;
}