@barba/core
Version:
Create badass, fluid and smooth transition between your website's pages
14 lines (13 loc) • 406 B
TypeScript
/**
* @module typings/core
*/
export type Link = HTMLAnchorElement | SVGAElement;
export type LinkEvent = MouseEvent | TouchEvent;
export type Scope = HTMLElement | HTMLDocument;
export type Trigger = Link | 'barba' | 'popstate' | 'back' | 'forward';
export type Wrapper = HTMLElement | null;
export interface IDomSibling {
before?: Element;
after?: Element;
parent?: Element;
}