Fix
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
bd1fb6c500
commit
fd6d134fbf
|
@ -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>
|
||||
|
|
|
@ -39,4 +39,8 @@
|
|||
.md-header,
|
||||
.md-tabs {
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
}
|
||||
|
||||
#scrollButton {
|
||||
transition: opacity 0.3s ease;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue