vue组件页面滚动事件
视觉滚动 (vue-scrollactive)
Lightweight and simple to use vue component that highlights menu items as you scroll the page, also scrolling to target section when clicked.
轻巧且易于使用的vue组件,在滚动页面时高亮显示菜单项,单击时也会滚动到目标部分。
This Vue 2 component makes it simple to highlight a menu item with an 'active' class as you scroll.
Vue 2组件使您可以在滚动时轻松突出显示具有“活动”类的菜单项。
Highlights items with a class as you scroll
滚动时突出显示具有类的项目
Scrolls to item's section on click
单击时滚动到项目部分
Customizable easing for scrolling on click
可自定义的缓动,用于滚动点击
Emits events on class changes
在班级变更时发出事件
安装 (Installation)
Install via npm
and use it as a vue plugin in your app.
通过npm