File tree 1 file changed +36
-25
lines changed 1 file changed +36
-25
lines changed Original file line number Diff line number Diff line change 1
1
# Example
2
2
3
- ``` javascript
4
- import React , { Component } from ' react' ;
5
- import { Bounce } from ' animate-components' ;
6
-
7
- export default class App extends Component {
8
- render () {
9
- return (
10
- < div>
11
- < Bounce>
12
- < h1> Hello World! < / h1>
13
- < / Bounce>
14
- < / div>
15
- );
16
- }
17
- }
18
- ```
3
+ <p align =" center " >
4
+ <img src="https://gyazo.com/9fc95209d4a04c636b7af98711cd0df3.png" />
5
+ </p >
19
6
20
7
The animation component can takes these props:
21
8
* ** duration**
22
9
``` javascript
23
- < Bounce duration= " 2s" >
10
+
11
+ < Entrance duration= " 2s" >
12
+
24
13
```
25
14
* ** delay**
26
15
``` javascript
27
- < Bounce delay= " 2s" >
16
+
17
+ < Entrance delay= " 2s" >
18
+
28
19
```
29
20
* ** timingFunction**
30
21
``` javascript
31
- < Bounce timingFunction= " ease-in" >
22
+
23
+ < Entrance timingFunction= " ease-in" >
24
+
32
25
```
33
26
* ** direction**
34
27
``` javascript
35
- < Bounce direction= " reverse" >
28
+
29
+ < Entrance direction= " reverse" >
30
+
36
31
```
37
32
* ** iterations**
38
33
``` javascript
39
- < Bounce iterations= " 2" >
34
+
35
+ < Entrance iterations= " 2" >
36
+
40
37
```
41
38
* ** backfaceVisible**
42
39
``` javascript
43
- < Bounce backfaceVisible= " visible" >
40
+
41
+ < Entrance backfaceVisible= " visible" >
42
+
44
43
```
45
44
* ** fillMode**
46
45
``` javascript
47
- < Bounce fillMode= " forward" >
46
+
47
+ < Entrance fillMode= " forward" >
48
+
48
49
```
49
50
* ** playState**
50
51
``` javascript
51
- < Bounce playState= " running" >
52
+
53
+ < Entrance playState= " running" >
54
+
52
55
```
56
+ * ** block**
57
+ ``` javascript
53
58
54
- All the animation components are wrapped in a high order component which renders a ` <span> ` with the styles derived from the ** props** .
59
+ < Entrance block>
60
+ < h1>
61
+ Hello World
62
+ < / h1>
63
+ < / Entrance>
64
+
65
+ ```
You can’t perform that action at this time.
0 commit comments