UNPKG

aurora-topu

Version:
18 lines (17 loc) 734 B
import React, { ReactNode } from 'react'; import { CSSTransitionProps } from 'react-transition-group/CSSTransition'; type AnimationName = 'zoom-in-top' | 'zoom-in-left' | 'zoom-in-bottom' | 'zoom-in-right'; /** * @author topu * @date 2023/7/16 * @Description 如果children当前已经有了动画,动画就不会起效果,所以要设置为wrapper为true,加一个父盒子,将AuroraTransition的动画加到父盒子上 * @param {type} [param] 参数说明 * @return 返回值 */ type TransitionProps = CSSTransitionProps & { animation?: AnimationName; wrapper?: boolean; children?: ReactNode; }; declare const AuroraTransition: React.FC<TransitionProps>; export default AuroraTransition;