UNPKG

swup

Version:

Versatile and extensible page transition library for server-rendered websites

12 lines 523 B
import type Swup from '../Swup.js'; import type { Options } from '../Swup.js'; export type AnimationDirection = 'in' | 'out'; /** * Return a Promise that resolves when all CSS animations and transitions * are done on the page. Filters by selector or takes elements directly. */ export declare function awaitAnimations(this: Swup, { elements, selector }: { selector: Options['animationSelector']; elements?: NodeListOf<HTMLElement> | HTMLElement[]; }): Promise<void>; //# sourceMappingURL=awaitAnimations.d.ts.map