susetr.blogg.se

Adjust smoothscroll
Adjust smoothscroll













adjust smoothscroll

You will see that the scroll eventually slows down, and then stops. Use the mouse wheel (not the scroll bar) to scroll this DIV.

adjust smoothscroll adjust smoothscroll

ScrollTop: $(window).scrollTop() - (distance * delta) If (event.preventDefault) event.preventDefault() If (event.wheelDelta) delta = event.wheelDelta / 120 Įlse if (tail) delta = tail / 3 Window.onmousewheel = document.onmousewheel = wheel If (window.addEventListener) window.addEventListener('DOMMouseScroll', wheel, false) However, their demo site ( ) is horribly jumpy and not at all smooth. No doubt it's a plugin of some sort and with some digging on StackOverflow I found "Jquery Smooth Scroll" ( ). I'm aware that he's using Wordpress and Jquery from the source files.

#ADJUST SMOOTHSCROLL CODE#

I tried digging into the code and I'm fairly sure that it's not a CSS property and doing a control-F on "scroll" and "parallax" in the JS file showed results but there are so many references I am not sure which one controls this functionality or how I could replicate it in my own projects. Also, the side menu on larger displays has a lovely smooth scrolling inertia curve to anchor links that I'm assuming is related. It responds to my mouse wheel, arrow buttons, and spacebar with the same smooth scroll. I noticed that the scroll is incredibly smooth and it gives a calming feeling since there are no jumps. I stumbled across this website and I like the scrolling features on it.















Adjust smoothscroll