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.
Files changed (2) hide show
  1. package/README.md +17 -1
  2. 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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-scroll-control",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {