aukc1970
posted this
29 May 2019
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.