Intersect
Emits events with intersection data.
DRAFT! This element is in early development and is liable to change or possibly be replaced.
- class
- Intersect
- extends
- Base
- tag
<intersect-blam>
Props
| name | type | default | description |
|---|---|---|---|
| root | string | (the viewport) | CSS selector representing the scollable area containing the observed elements. Defaults to the viewport. |
| steps | number | 10 | The granularity of intersection being observed. Where set to |
| margin | string | 0 | Alias for the standard |
Events
| type | description |
|---|---|
| blam | Emitted whenever an intersection occurs, carrying the intersection ratio as |
Examples
Examples that use the Intersect element: