intersect

fun intersect(root: StandardCssSelector? = null, threshold: Float? = null): String(source)

"intersect" - fires once when an element first intersects the viewport. This supports two additional options.

Parameters

root

a CSS selector of the root element for intersection

threshold

a floating point number between 0.0 and 1.0, indicating what amount of intersection to fire the event on