Tell me please how to make a smooth page scrolling through sections or anchors with the mouse wheel?

aukc1970
8 Posts
aukc1970 posted this 29 May 2019
Ask a Question

Good day ! Tell me please how to make a smooth page scrolling through sections or anchors with the mouse wheel? Here is the code, but it only makes the first slide or section, and it is necessary that all sections scroll so much.

<script>  

window.onload = function() {
$(document).ready(function(){

var flag=true;
$(window).scroll(function() {
var HeightBlock = $(window).height();

if ($(window).scrollTop() == 0){
flag=true;
}
if (($(window).scrollTop() > 60) && (flag) ){
$('html,body').animate( { scrollTop: HeightBlock }, 1100 );
flag = false;

}

})

})
}

Good day ! Tell me please how to make a smooth page scrolling through sections or anchors with the mouse wheel? Here is the code, but it only makes the first slide or section, and it is necessary that all sections scroll so much. <script> window.onload = function() { $(document).ready(function(){ var flag=true; $(window).scroll(function() { var HeightBlock = $(window).height(); if ($(window).scrollTop() == 0){ flag=true; } if (($(window).scrollTop() > 60) && (flag) ){ $('html,body').animate( { scrollTop: HeightBlock }, 1100 ); flag = false; } }) }) }

Last edited 29 May 2019 by aukc1970

Vote to pay developers attention to this features or issue.
1 Reply
Order By: Standard | Newest
Support Team
Support Team posted this 30 May 2019

Hi Олег,

Unfortunately, we do not provide such code solutions. But you can search for any existing solution or library for smooth page scrolling on the Internet. There is nothing specific to Nicepage.

The code you provided creates exactly the same effect as you described.

...................................................
Sincerely,
Olivia
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi Олег, Unfortunately, we do not provide such code solutions. But you can search for any existing solution or library for smooth page scrolling on the Internet. There is nothing specific to Nicepage. The code you provided creates exactly the same effect as you described. ................................................... Sincerely, Olivia Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
You must log in or register to leave comments