B
B
Binarix2015-10-06 05:48:49
JavaScript
Binarix, 2015-10-06 05:48:49

How to disable scrolling?

Hello. I do the following effect on jQuery, if a person on the page scrolls the page at least a little, it starts scrolling down to the height of the first screen. I do the effect through scrollTop and animate

$('body, html').stop().animate({scrollTop: $bodyheight}, 'fast');

but if you start scrolling while the animation is running, then everything starts to twitch and return to the animation. How can this be overcome?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Tsarapkin, 2015-10-06
@Binarix

For example, using the fullPage plugin

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question