Pages
Standard Library
Search
Entities
IntersectionObserver
Functions
Creates a new intersection observer.
observer =
IntersectionObserver.new("50px", 0.1,
(intersectionRatio : Number) {
if (intersectionRatio == 1) {
Debug.log("Fully visible!")
} else {
Debug.log("Not fully visible!")
}
})
Observes the given element.
Unobserves the given element.