view-transitions-polyfill
Version:
A polyfill for the View Transitions API.
14 lines (13 loc) • 440 B
TypeScript
export declare class MediaClone extends HTMLElement {
clone: HTMLCanvasElement;
element: HTMLVideoElement | HTMLCanvasElement | undefined;
ctx: CanvasRenderingContext2D;
nextAnimationFrame?: number;
live: boolean;
constructor();
setup(element: HTMLVideoElement | HTMLCanvasElement, live?: boolean): void;
connectedCallback(): void;
disconnectedCallback(): void;
drawLive(): void;
draw(): void;
}