Skip to main content


public function build_observer( array $elements, int $threshold = 1 ) {

This method takes an array of elements and corresponding js, and builds the javascript markup for an intersection observer to track the provided elements. This method is useful for delaying animations until an element has come into view.

Method Documentation Incomplete

Check back soon for a list of arguments, return values, and an example.