1 |
|
2 |
|
3 | import * as React from 'react';
|
4 | import CommonProps from '../util';
|
5 |
|
6 | export interface AnimateProps extends React.HTMLAttributes<HTMLElement>, CommonProps {
|
7 | |
8 |
|
9 |
|
10 | animation?: string | any;
|
11 |
|
12 | |
13 |
|
14 |
|
15 | animationAppear?: boolean;
|
16 |
|
17 | |
18 |
|
19 |
|
20 | component?: React.ReactHTML;
|
21 |
|
22 | |
23 |
|
24 |
|
25 | singleMode?: boolean;
|
26 |
|
27 | |
28 |
|
29 |
|
30 | children?: React.ReactElement<any> | Array<any>;
|
31 |
|
32 | |
33 |
|
34 |
|
35 | beforeAppear?: (node: React.ReactElement<any>) => void;
|
36 |
|
37 | |
38 |
|
39 |
|
40 | onAppear?: (node: React.ReactElement<any>) => void;
|
41 |
|
42 | |
43 |
|
44 |
|
45 | afterAppear?: (node: React.ReactElement<any>) => void;
|
46 |
|
47 | |
48 |
|
49 |
|
50 | beforeEnter?: (node: React.ReactElement<any>) => void;
|
51 |
|
52 | |
53 |
|
54 |
|
55 | onEnter?: (node: React.ReactElement<any>) => void;
|
56 |
|
57 | |
58 |
|
59 |
|
60 | afterEnter?: (node: React.ReactElement<any>) => void;
|
61 |
|
62 | |
63 |
|
64 |
|
65 | beforeLeave?: (node: React.ReactElement<any>) => void;
|
66 |
|
67 | |
68 |
|
69 |
|
70 | onLeave?: (node: React.ReactElement<any>) => void;
|
71 |
|
72 | |
73 |
|
74 |
|
75 | afterLeave?: (node: React.ReactElement<any>) => void;
|
76 | }
|
77 |
|
78 | export default class Animate extends React.Component<AnimateProps, any> {}
|