src/main/javascript/dom/floatz.dom.dom.js
/**
     * Get scroll position relative to visible viewport.
     *
     * @returns {{top: number, left: number, bottom: number, right: number}}
     */
Get scroll position relative to visible viewport.
Get scroll position relative to visible viewport .
offset() {
        return {
            top: this._origNode.getBoundingClientRect().top,
            left: this._origNode.getBoundingClientRect().left,
            bottom: this._origNode.getBoundingClientRect().bottom,
            right: this._origNode.getBoundingClientRect().right
        }
    }
offset ( ) { return { top : this . _origNode . getBoundingClientRect ( ) . top , left : this . _origNode . getBoundingClientRect ( ) . left , bottom : this . _origNode . getBoundingClientRect ( ) . bottom , right : this . _origNode . getBoundingClientRect ( ) . right } }
Get scroll position relative to visible viewport.
Get scroll position relative to visible viewport .