src/main/javascript/scroll/floatz.scroll.scroller.js
/**
	 * Scroll into viewport handler.
	 * Observe elements when they scroll into the viewport.
	 * <p>
	 *     The registered handler is executed as soon as the target element scrolls into 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 into viewport handler.
Observe elements when they scroll into the viewport.

The registered handler is executed as soon as the target element scrolls into 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 into viewport handler . Observe elements when they scroll into the viewport . The registered handler is executed as soon as the target element scrolls into 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
onScrollIn(target, handler) {
		_initIntersectionObserver(this, target);
		let targets = Array.isArray(target) ? target : new Array(target);
		targets.forEach((target) => {
			this._scrollInHandlers.push({
				target: target,
				handler: handler
			});
		});
		return this;
	}
onScrollIn ( target , handler ) { _initIntersectionObserver ( this , target ) ; let targets = Array . isArray ( target ) ? target : new Array ( target ) ; targets . forEach ( ( target ) => { this . _scrollInHandlers . push ( { target : target , handler : handler } ) ; } ) ; return this ; }
Scroll into viewport handler.
Scroll into viewport handler .
// Remove redundant code - see onScrollOut, onScrollIntersected