full-page-scroll
v0.0.4
Published
full-page-scroll 是一个基于 vue3 实现的全屏滚动组件
Downloads
3
Maintainers
Readme
full-page-scroll 是一个基于 vue3 实现的全屏滚动组件
# 安装
npm i full-page-scroll
# 注册
import FullPageScroll from 'full-page-scroll'
import 'full-page-scroll/lib/style.css'
createApp(App).use(FullPageScroll)
# 使用示例
# 子标签必须包含 class="section,最好用设置了高度的 div 包裹
<div style="height: 100vh;">
<full-page-scroll>
<div class="section">1</div>
<div class="section">2</div>
<div class="section">3</div>
</full-page-scroll>
</div>