IntersectionEvents
Wrapper of IntersectionObserver
Constructor Summary
| Public Constructor | ||
| public |
constructor(target: string | NodeList | Element | Element[], options: Object) |
|
Public Constructors
public constructor(target: string | NodeList | Element | Element[], options: Object) source
Params:
| Name | Type | Attribute | Description |
| target | string | NodeList | Element | Element[] | Target elements (selector or element object) |
|
| options | Object | ||
| options.onEnter | handler | Event handler when the element enters window |
|
| options.onLeave | handler |
|
Event handler when the element leaves window |
| options.enterThreshold | number |
|
Threshold when element enters window |
| options.leaveThreshold | number |
|
Threshold when element leaves window |
| options.isOnce | boolean |
|
Whether to detect enter only once |
