diff --git a/docs/index.md b/docs/index.md index 045c4d5..577715b 100644 --- a/docs/index.md +++ b/docs/index.md @@ -11,6 +11,20 @@ title: Start window.scrollTo({ top: y, behavior: 'smooth' }); } + + // Göm knappen vid scroll window.addEventListener('scroll', () => { const button = document.getElementById('scrollButton'); diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index a17c0e8..9f73f15 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -29,3 +29,7 @@ } } + .md-header, + .md-tabs { + transition: transform 0.3s ease; + } \ No newline at end of file