Hi!
I know nothing to JS and am trying to implement this custom code to my website: Home · gblazex/smoothscroll-for-websites Wiki · GitHub
Looks like everything should simply go into the HEAD tag but for some reason it still doesn’t work:
<script>
window.SmoothScrollOptions = {
// Scrolling Core
animationTime : 2000, // [ms]
stepSize : 500, // [px]
// Acceleration
accelerationDelta : 100, // 50
accelerationMax : 6, // 3
// Keyboard Settings
keyboardSupport : true, // option
arrowScroll : 50, // [px]
// Pulse (less tweakable)
// ratio of "tail" to "acceleration"
pulseAlgorithm : true,
pulseScale : 5,
pulseNormalize : 2,
// Other
touchpadSupport : false, // ignore touchpad by default
fixedBackground : true,
excluded : ''
}
</script>
<script async src="https://cdnjs.cloudflare.com/ajax/libs/smoothscroll/1.4.9/SmoothScroll.js"></script>
Could someone kindly tell me what I’m doing wrong?
Thanks!