@@ -15,13 +15,13 @@ English | [简体中文](./README-zh_CN.md)
15
15
## Introduction
16
16
` tua-body-scroll-lock ` enables body scroll locking for everything.
17
17
18
- ### Why not [ body-scroll-lock] ( https://github.com/willmcpo/body-scroll-lock ) ?
18
+ ### Why not [ body-scroll-lock(BSL) ] ( https://github.com/willmcpo/body-scroll-lock ) ?
19
19
* Doesn't work on Android webview
20
20
* Doesn't work on PC with mouse wheel
21
- * Doesn't work on iOS, if you touch somewhere instead of targetElement
22
- * Must pass targetElement, even if it's not necessary
21
+ * Doesn't work on iOS, if you touch somewhere instead of ` targetElement `
22
+ * Must pass ` targetElement ` , even if it's not necessary
23
23
24
- [ Try This ] ( https://codepen.io/buptsteve/pen/EJoKQK )
24
+ [ 😱Can't believe it? Please try this demo with BSL yourself. ] ( https://codepen.io/buptsteve/pen/EJoKQK )
25
25
26
26
## Install
27
27
### Node Package Manager(recommended)
@@ -145,11 +145,18 @@ unlock(targetElement)
145
145
146
146
> The ` targetElement ` is not required on the PC and Android.
147
147
148
- ## Test
149
- [ testLink] ( https://tuateam.github.io/tua-body-scroll-lock )
148
+ ## Demo
150
149
151
150
![ bodyScrollLock] ( ./tua-bsl.png )
152
151
152
+ platform | link |
153
+ | - | -
154
+ gh-pages | https://tuateam.github.io/tua-body-scroll-lock |
155
+ jsbin | https://jsbin.com/cafiful/edit?output |
156
+ codepen | https://codepen.io/buptsteve/pen/PvNQjP |
157
+ jsfiddle | https://jsfiddle.net/buptsteve/6u8g3Lf5/ |
158
+ codesandbox | https://codesandbox.io/s/o73z4jy5q9 |
159
+
153
160
## Contributors
154
161
155
162
Thanks goes to these wonderful people ([ emoji key] ( https://allcontributors.org/docs/en/emoji-key ) ):
0 commit comments