Open Yuliang-Lee opened 6 years ago
If you want to set something else (not body) to scroll container, you could:
<div class="container" v-scroll-spy>
<div>
<h1>Header 1</h1>
<p>Content</p>
</div>
<div>
<h1>Header 2</h1>
<p>Content</p>
</div>
</div>
.container {
position: relative;
}
support instead listen window's scroll event but listen specific dom's scroll event