D
D
danyfir2020-10-04 12:50:48
Video
danyfir, 2020-10-04 12:50:48

How to make smooth scrolling of the entire site, without twitching?

Hello! I saw these previews at one studio: Video
I want to know how it's easier to implement? Maybe there are some services or automated plugins?
Scrolling with the mouse - it turns out twitchy. Arrow down - also jerky. I tried to put all sorts of plug-ins on the browser that make a smooth scroll - it still jerks in places.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
H
hzzzzl, 2020-10-04
@hzzzzl

try to add in css

html  {
  scroll-behavior: smooth;
}

and just jquery
$("html, body").animate({ scrollTop: $(document).height() }, 25000);

seems to be more or less normal

V
vitalypanchenko1, 2020-10-05
@vitalypanchenko1

Add to CSS

html  {
  scroll-behavior: smooth;
}

And make buttons on the side of the page (or somewhere else) that, with a slight pause, will scroll the page by several tens of pixels, you can program it through JS

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question