smooth-scrolling


So smooth scrolling like on this website


How to implement smooth scrolling like on this website?
https://boredomdoctors.com/banjo-dog/
I've found on website similar solution:
if (window.addEventListener) window.addEventListener('DOMMouseScroll', wheel, false);
window.onmousewheel = document.onmousewheel = wheel;
function wheel(event) {
var delta = 0;
if (event.wheelDelta) delta = event.wheelDelta / 120;
else if (event.detail) delta = -event.detail / 2;
handle(delta);
if (event.preventDefault) event.preventDefault();
event.returnValue = false;
}
function handle(delta) {
var time = 900; // delay time
var distance = 140; // delta point
// Dom where it will apply
$('html, body').stop().animate({
scrollTop: $(window).scrollTop() - (distance * delta)
}, time, 'easeOutExpo' );
}

Related Links

Smooth scroll function really slow
Instagram snapwidget stops the smoothscroll
Listview SmoothScrollToPosition control with buttons and change item background
So smooth scrolling like on this website
One Page Scroll add Active class depending on scroll position
Smooth-Div-Scroll and iPad

Categories

HOME
redux
primefaces
file-upload
ibm
liquibase
nagios
arcgis
esxi
glympse
flowtype
kohana
webpack-dev-server
core-data
template10
caldav
onclicklistener
devexpress-mvc
advertising
handle
ithit-webdav-server
aspxgridview
mongoose-im
launchd
uibarbuttonitem
javapns
postgresql-9.6
certbot
azure-vm-scale-set
border-layout
sdl-2
azure-storage-files
framebuffer
socketcluster
tapply
datagridviewcombobox
bootstrap-carousel
gridgain
qtwebkit
google-chrome-storage
denodo
dynamic-linking
sp
overhead
catalyst
copy-constructor
blackberry-webworks
virtualenvwrapper
laterjs
jde
factorization
apache2-module
javapackager
identifying
jsoncpp
dcg
polarion
accpac
pysvn
javadb
react-os
windows-search
pidgin
email-headers
jfilechooser
xcode5.1
nokogiri
forward-declaration
leap-year
bho
pageload
cron4j
moonscript
yii-components
cryptarithmetic-puzzle
systrace
optimistic-concurrency
jqueryi-ui-buttonset
scsf
discussion-board
jquery-click-event
mismatch
netduino
n2
response-time
fxcopcmd
azure-appfabric
versions
zend-acl
onresize
disk-based

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App