We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3821519 commit ab1f855Copy full SHA for ab1f855
readme.md
@@ -2,6 +2,10 @@
2
3
Interact with [CSS scroll-snap](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Scroll_Snap).
4
5
+Zero dependencies.
6
+
7
+Automatically accounts for `scroll-padding`.
8
9
## Install
10
11
```shell
@@ -10,7 +14,7 @@ yarn add scroll-snap-api
14
npm install --save scroll-snap-api
15
```
12
16
13
-Or import directly
17
+Or use directly
18
19
```js
20
import * as scrollSnapApi from 'https://cdn.pika.dev/scroll-snap-api';
@@ -71,4 +75,5 @@ const snap = getSnapPositions( scrollingElement );
71
75
## TODO
72
76
73
77
- More documentation
78
+- Pass scroll behaviour args
74
79
- Support `dir="rtl"`
0 commit comments