UNPKG

@vtbag/utensil-drawer

Version:

Pull out just what you need to craft seamless transitions. The Utensil Drawer holds reusable functions to help you build websites with view transitions. It is a bit sparse right now, but like the one in your kitchen, it is bound to fill up over time.

12 lines (11 loc) 660 B
export interface StartViewTransitionExtensions { scope?: Document | HTMLElement; respectReducedMotion?: boolean; collisionBehavior?: 'skipOld' | 'chaining' | 'chaining-only' | 'skipNew' | 'never'; speedUpWhenChained?: number; useTypesPolyfill?: 'never' | 'auto' | 'always'; catchErrors?: boolean; } export declare function getCurrentViewTransition(scope?: Document | Element): ViewTransition | undefined; export declare function nativeViewTransitionSupport(): string; export declare function mayStartViewTransition(param?: StartViewTransitionOptions | ViewTransitionUpdateCallback, ext?: StartViewTransitionExtensions): ViewTransition;