zangai-react
Version:
54 lines (53 loc) • 1.7 kB
TypeScript
import * as React from 'react';
export interface IAnimationHeight {
animateOpacity?: boolean;
animationStateClasses?: any;
applyInlineTransitions?: any;
children: any;
className?: any;
contentClassName?: any;
duration?: any;
delay?: number;
easing?: any;
height: string | number;
onAnimationEnd?: Function;
onAnimationStart?: Function;
style?: any;
}
export declare class AtAnimationHeight extends React.Component<any, any> {
static defaultProps: {
animateOpacity: boolean;
animationStateClasses: {
animating: string;
animatingUp: string;
animatingDown: string;
animatingToHeightZero: string;
animatingToHeightAuto: string;
animatingToHeightSpecific: string;
static: string;
staticHeightZero: string;
staticHeightAuto: string;
staticHeightSpecific: string;
};
applyInlineTransitions: boolean;
duration: number;
delay: number;
easing: string;
style: {};
onAnimationEnd: () => void;
onAnimationStart: () => void;
};
animationStateClasses: any;
contentElement: any;
animationClassesTimeoutID: any;
timeoutID: any;
constructor(props: IAnimationHeight);
componentDidMount(): void;
componentDidUpdate(prevProps: IAnimationHeight, prevState: IAnimationHeight): void;
componentWillUnmount(): void;
showContent(height: number | string): void;
hideContent(newHeight: number): void;
getStaticStateClasses(height: number | string): string;
render(): JSX.Element;
}
export default AtAnimationHeight;