src/main/javascript/scroll/floatz.scroll.scroller.js
/**
	 * Scroll out of viewport handler.
	 * Oberserv elements when they scroll out of the viewport.
	 * <p>
	 *     The registered handler is executed as soon as the target element scrolls out of the viewport.
	 *     TODO: Consider custom thresholds
	 *     TODO: Multiple targets (Array)
	 *     TODO: String selector as target
	 *     TODO: Node as target
	 * </p>
	 *
	 * @param {DOMElement|Array} target Observed target element(s)
	 * @param {Function} handler Custom handler
	 * @returns {Scroller} Scroller for chaining
	 */
Scroll out of viewport handler.
Oberserv elements when they scroll out of the viewport.

The registered handler is executed as soon as the target element scrolls out of the viewport.
TODO: Consider custom thresholds
TODO: Multiple targets (Array)
TODO: String selector as target
TODO: Node as target


@param {DOMElement|Array} target Observed target element(s)
@param {Function} handler Custom handler
@returns {Scroller} Scroller for chaining
Scroll out of viewport handler . Oberserv elements when they scroll out of the viewport . The registered handler is executed as soon as the target element scrolls out of the viewport . TODO : Consider custom thresholds TODO : Multiple targets ( Array ) TODO : String selector as target TODO : Node as target @param { DOMElement|Array } target Observed target element ( s ) @param { Function } handler Custom handler @returns { Scroller } Scroller for chaining
onScrollOut(target, handler) {
		_initIntersectionObserver(this, target);
		let targets = Array.isArray(target) ? target : new Array(target);
		targets.forEach((target) => {
			this._scrollOutHandlers.push({
				target: target,
				handler: handler
			});
		});
		return this;
	}
onScrollOut ( target , handler ) { _initIntersectionObserver ( this , target ) ; let targets = Array . isArray ( target ) ? target : new Array ( target ) ; targets . forEach ( ( target ) => { this . _scrollOutHandlers . push ( { target : target , handler : handler } ) ; } ) ; return this ; }
Scroll out of viewport handler.
Scroll out of viewport handler .