You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Proviede a `list` of dom like below, and pass the parent container `ref` to hook, it return the scrollbar current state of `scrollTop`, `curIndex`, `curItem`.
99
102
100
-
**Live demo is <atarget="_blank"href="https://codesandbox.io/s/gifted-field-5b3ui?file=/UseScrollWatch.stories.tsx:9-24" >Here</a>.**(Codesandbox)
> Click <ahref="https://ron0115.best/react-smooth-scroll-hook/?path=/docs/hook-usescrollwatch--docs"target="_blank">Here</a> to know more and see Demo.
157
-
158
159
### Props
159
160
160
161
-**list**`Array({href, offset})`: `href` is elemet selector string, which passing to `querySelector`, such as `#element-id`
0 commit comments