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
oop
redux
virtual-machine
locale
jenkins-pipeline
openacc
window.open
highmaps
azure-database-mysql
salesforce-lightning
pandoc
singleton
mailchimp
browserstack
google-api-oauth
sahi
apache-httpclient-4.x
kairosdb
aspectj
logstash-configuration
simd
printf
minimagick
serenity-js
fastboot
google-drive-android-api
core-animation
mex
angular2-changedetection
launchd
custom-fields
units-of-measurement
dynamics-ax-2012-r3
javapns
edsdk
keil
angularjs-resource
tunnel
leaderboard
stencyl
ssdp
ape-phylo
amazon-rds-aurora
risc
reqif
serverless-architecture
denodo
spring-cloud-bus
xamarin-test-cloud
zedgraph
iban
suitesparse
cardview
blitz3d
turbolinks
toggleclass
cosign-api
angularfire
nsoperationqueue
transaction-isolation
laterjs
python-rq
nugetgallery
containstable
dday
nonblocking
app-data
imageicon
magnet-uri
mojolicious
transport
notice
om
pushwoosh
sparkcore
vensim
tokudb
service-broker
nsurlrequest
windows-search
drawable
triplestore
behance-api
google-oauth-java-client
friendly-url
infinity.js
pageload
ntdll
parsec
datejs
peoplepicker
meego-harmattan
stackless

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