mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2024-04-21 12:32:08 +00:00
35 lines
890 B
TypeScript
35 lines
890 B
TypeScript
type TransitionEnter = {
|
|
timeEnter: number;
|
|
enter: AnimationFrames[];
|
|
}
|
|
type TransitionLeave = {
|
|
timeLeave: number;
|
|
leave: AnimationFrames[];
|
|
};
|
|
type AnimationFrames = {
|
|
transform?: string;
|
|
opacity?: number;
|
|
height?: string;
|
|
};
|
|
|
|
export function transition($node: HTMLElement, opts?: TransitionEnter | TransitionLeave): HTMLElement;
|
|
|
|
export function animate($node: HTMLElement | null, opts: {
|
|
time: number;
|
|
keyframes: AnimationFrames[];
|
|
}): Promise<void>;
|
|
|
|
export function slideXIn(dist: number): AnimationFrames[];
|
|
|
|
export function slideXOut(dist: number): AnimationFrames[];
|
|
|
|
export function opacityIn(): AnimationFrames[];
|
|
|
|
export function opacityOut(): AnimationFrames[];
|
|
|
|
export function slideYIn(dist: number): AnimationFrames[];
|
|
|
|
export function slideYOut(dist: number): AnimationFrames[];
|
|
|
|
export function zoomIn(size: number): AnimationFrames[];
|