@ssgoi/core
Version:
Core animation engine for SSGOI - Native app-like page transitions with spring physics
7 lines • 389 B
TypeScript
/**
* Gets the positioned parent element that serves as the containing block for absolute positioning
* Returns the nearest ancestor with position: relative, absolute, fixed, or sticky
* Falls back to document.body if no positioned ancestor is found
*/
export declare const getPositionedParent: (element: HTMLElement) => HTMLElement;
//# sourceMappingURL=get-positioned-parent.d.ts.map