Skip to content

Commit

Permalink
fixing smoothing scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
madmaxWMFU committed Oct 17, 2024
1 parent 87a52aa commit 7b67ae0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,3 +267,16 @@ document.getElementById('titleLink').addEventListener('click', (e) => {
showHalloweenIcon()
}
})

SmoothScroll({
animationTime : 800,
stepSize : 75,
accelerationDelta : 30,
accelerationMax : 2,
keyboardSupport : true,
arrowScroll : 50,
pulseAlgorithm : true,
pulseScale : 4,
pulseNormalize : 1,
touchpadSupport : true,
})
1 change: 1 addition & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -303,5 +303,6 @@ <h2 class="modal-title">Fun Facts</h2>
</button>
<script src="contributor.js"></script>
<script src="app.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/smoothscroll/1.4.10/SmoothScroll.min.js" integrity="sha256-huW7yWl7tNfP7lGk46XE+Sp0nCotjzYodhVKlwaNeco=" crossorigin="anonymous"></script>
</body>
</html>

0 comments on commit 7b67ae0

Please sign in to comment.