view-transitions-polyfill
Version:
A polyfill for the View Transitions API.
12 lines (11 loc) • 527 B
TypeScript
import { Callback, ViewTransition } from './polyfill-utils';
export declare function startViewTransitionPolyfill(callback: Callback | undefined): ViewTransition;
export declare function mapStartViewTransition(): void;
declare global {
interface Document {
startViewTransition: ((callback?: () => void) => ViewTransition) | undefined;
}
}
export declare function mapPolyfillViewTransitionAnimate(): void;
export declare function mapToGetAnimations(): void;
export declare function mapViewTransitionName(): void;