Skip to content

Commit 7048f8f

Browse files
committed
chore: change demo position in readme file
1 parent 59d72dd commit 7048f8f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ This is a custom hook for react which is useful to detect scroll direction in Re
66

77
This package is created on behalf of a [StackOverflow answer](https://stackoverflow.com/a/62497293/11908502) which draws some attention to itself, so if someone just wants something to work with right away, they can access it easily here.
88

9+
## Demo
10+
11+
[![View @smakss/search](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/react-scroll-direction-tclwvp?fontsize=14&hidenavigation=1&theme=dark)
12+
913
## How it works?
1014

1115
To install it you can simply do the following command:
@@ -55,7 +59,3 @@ const [scrollDir] = useDetectScroll({ axis: "x" });
5559

5660
// scrollDir: "left"/"right"
5761
```
58-
59-
## Demo
60-
61-
[![View @smakss/search](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/react-scroll-direction-tclwvp?fontsize=14&hidenavigation=1&theme=dark)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@
4646
"generate": "rollup -c"
4747
},
4848
"type": "module",
49-
"version": "1.0.2"
49+
"version": "1.0.3"
5050
}

0 commit comments

Comments
 (0)