photoswipe
Version:
JavaScript gallery
35 lines (34 loc) • 890 B
TypeScript
export default CSSAnimation;
export type AnimationProps = import('./animations.js').AnimationProps;
/** @typedef {import('./animations.js').AnimationProps} AnimationProps */
/**
* Runs CSS transition.
*/
declare class CSSAnimation {
/**
* onComplete can be unpredictable, be careful about current state
*
* @param {AnimationProps} props
*/
constructor(props: AnimationProps);
props: import("./animations.js").AnimationProps;
/** @type {() => void} */
onFinish: () => void;
/** @private */
private _target;
/** @private */
private _onComplete;
/**
* @private
* @param {TransitionEvent} e
*/
private _onTransitionEnd;
/** @private */
private _helperTimeout;
/**
* @private
*/
private _finalizeAnimation;
_finished: boolean;
destroy(): void;
}