@ssgoi/core
Version:
Core animation engine for SSGOI - Native app-like page transitions with spring physics
15 lines • 677 B
TypeScript
/**
* Waits for the browser to complete a paint cycle.
*
* This ensures that any style changes have been applied and the element
* has been painted to the screen before starting animations.
*
* Currently uses double requestAnimationFrame as a reliable cross-browser
* approach. In the future, this could be replaced with a native API when
* available (e.g., a proposed `element.waitForPaint()` or similar).
*
* @param _element - The element to wait for (reserved for future API usage)
* @returns A promise that resolves after the paint cycle completes
*/
export declare function waitPaint(_element?: Element): Promise<void>;
//# sourceMappingURL=wait-paint.d.ts.map