不参与滚动的元素

这是一个fixed box!
它没有被包裹在SmooScroll容器中,
所以它不会参与页面的滚动。

S

moo

th

S

croll

基于原生滚动条的平滑滚动JS
平滑滚动页面 | Smooth your scroll

scroll down and
feel the smoothness

向下滚动 感受丝滑

keep
scrolling

继续滚动

did you notice
你注意到了吗
that box is still there
那盒子还在那呢

that's what
manual version
does
那就是manual版
做到的效果

that's it
就这些了

:)

现在开始使用SmooScroll!

SmooScroll is on GitHub

Get SmooScroll from GitHub

或者使用CDN链接快速体验auto-lite版本效果

<script src="https://cdn.jsdelivr.net/gh/ShuninYu/SmooScroll@v1.1.4/src/1.1.4/smooscroll-1.1.4-auto-lite.min.js"></script>

在<head>中插入该代码,然后让SmooScroll施展魔法!

*如果你的页面有窗口固定元素,该版本效果可能会“用力过猛”
请下载manual版本并根据指南使用(相信我,依然很简单)

Gitee (中国内地)

从Gitee获取SmooScroll

*SmooScroll的Gitee仓库只是GitHub仓库的镜像,不保证与GitHub仓库同步更新。