Update README.md with new events
This commit is contained in:
parent
e9bc40bd37
commit
e288476ba0
12
README.md
12
README.md
@ -334,6 +334,18 @@ This event fires when scrolling to the left.
|
|||||||
### ps-scroll-right
|
### ps-scroll-right
|
||||||
This event fires when scrolling to the right.
|
This event fires when scrolling to the right.
|
||||||
|
|
||||||
|
### ps-y-reach-start
|
||||||
|
This event fires when scrolling reaches the start of the y-axis.
|
||||||
|
|
||||||
|
### ps-y-reach-end
|
||||||
|
This event fires when scrolling reaches the end of the y-axis (useful for infinite scroll).
|
||||||
|
|
||||||
|
### ps-x-reach-start
|
||||||
|
This event fires when scrolling reaches the start of the x-axis.
|
||||||
|
|
||||||
|
### ps-x-reach-end
|
||||||
|
This event fires when scrolling reaches the end of the x-axis.
|
||||||
|
|
||||||
You can listen to these events either with vanilla JavaScript
|
You can listen to these events either with vanilla JavaScript
|
||||||
```javascript
|
```javascript
|
||||||
document.addEventListener('ps-scroll-x', function () {
|
document.addEventListener('ps-scroll-x', function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user