react-scroll-control 1.0.4 โ 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## ๐ Connect With Us
|
|
2
|
+
|
|
3
|
+
**Petaby Technologies**
|
|
4
|
+
|
|
5
|
+
- ๐ **LinkedIn**: https://www.linkedin.com/company/petabytechnologies/
|
|
6
|
+
- ๐ธ **Instagram**: https://www.instagram.com/petabytechnologies/
|
|
7
|
+
|
|
8
|
+
|
|
1
9
|
# react-scroll-control
|
|
2
10
|
|
|
3
11
|
Control scroll speed in React applications using pure JavaScript โ **no third-party libraries required**.
|
|
@@ -50,6 +58,15 @@ Using npm:
|
|
|
50
58
|
npm install react-scroll-control
|
|
51
59
|
```
|
|
52
60
|
|
|
61
|
+
## ๐งช Examples
|
|
62
|
+
|
|
63
|
+
```js
|
|
64
|
+
useSmoothScroll(0.3); // very slow scrolling
|
|
65
|
+
useSmoothScroll(0.5); // smooth & natural
|
|
66
|
+
useSmoothScroll(1); // default browser speed
|
|
67
|
+
useSmoothScroll(1.5); // fast scrolling
|
|
68
|
+
```
|
|
69
|
+
|
|
53
70
|
## ๐ Usage
|
|
54
71
|
|
|
55
72
|
```jsx
|
|
@@ -66,7 +83,6 @@ function App() {
|
|
|
66
83
|
}
|
|
67
84
|
```
|
|
68
85
|
|
|
69
|
-
|
|
70
86
|
## โ ๏ธ Important Notes
|
|
71
87
|
|
|
72
88
|
- This hook replaces native mouse-wheel scrolling
|