一个React库,用于在滚动时跟踪用户在页面中的进度
一个React库,用于在滚动时跟踪用户在页面中的进度
React 无限滚动
共147Star
详细介绍
react-page-progress
Sweet Component (Yes, This is the one with HOOKS
🚀 ) that tracks a users progress through a page as they scroll
Install
npm i react-page-progress
OR
yarn add react-page-progress
Usage
Props
Props | Type | isRequired | Example |
---|---|---|---|
color | string | No | 'Default is SkyBlue' , 'green' or '#fb6249' or 'rgb(255, 26, 26)'``// If you want Progress bar Opaque, You can use rgba(...) or hsla(...) |
height | number | No | 'Should be a Number, 4 is default' |
Demo
Watch Demo Here
License
MIT © NomanGul
-
176 Star
-
203 Star
-
122 Star
-
383 Star
-
1294 Star
-
404 Star