UNPKG

@ssgoi/core

Version:

Core animation engine for SSGOI - Native app-like page transitions with spring physics

7 lines 338 B
/** * Get the relative position of an element to its root container * Returns a DOMRect with position relative to the root element * Uses offset properties instead of getBoundingClientRect to avoid transform issues */ export declare function getRect(root: HTMLElement, el: HTMLElement): DOMRect; //# sourceMappingURL=get-rect.d.ts.map