Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/69.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 在jquery或js中创建向下或向上滚动时的慢速滚动_Javascript_Jquery_Scroll - Fatal编程技术网

Javascript 在jquery或js中创建向下或向上滚动时的慢速滚动

Javascript 在jquery或js中创建向下或向上滚动时的慢速滚动,javascript,jquery,scroll,Javascript,Jquery,Scroll,我想创建滚动,但向下或向上移动时速度较慢。 我试过这个: $(document).ready(function(){ $("html").niceScroll }); 查看https://github.com/kswedberg/jquery-smooth-scroll 这是一个通过单击锚定滚动到内容来平滑滚动的插件。我不希望滚动到站点中的元素,我希望它很慢,或者可以查看配置参数scrollspeed:所以它将是例如$(document).ready(function(){$(“htm

我想创建滚动,但向下或向上移动时速度较慢。
我试过这个:

$(document).ready(function(){
    $("html").niceScroll
});

查看
https://github.com/kswedberg/jquery-smooth-scroll


这是一个通过单击锚定滚动到内容来平滑滚动的插件。

我不希望滚动到站点中的元素,我希望它很慢,或者可以查看配置参数scrollspeed:所以它将是例如$(document).ready(function(){$(“html”).niceSroll({scrollspeed:60});});