@@ -3,42 +3,76 @@ import gueio1 from "../../img/gueio_voando1.png";
3
3
import gueio2 from "../../img/gueio_voando2.png" ;
4
4
import gueio3 from "../../img/gueio_voando3.png" ;
5
5
6
+ const calcBase = 3 ;
7
+
6
8
const voante = keyframes `
7
9
0% {
8
10
background-image: url(${ gueio1 } );
9
- transform: rotate(-15deg) scale(1.8);
11
+ transform: translateY(0) scale(1.8);
12
+ }
13
+ 5% {
14
+ background-image: url(${ gueio2 } );
15
+ transform: translateY(0) scale(1.8) rotate(calc(-1deg * ${ calcBase } ));
10
16
}
11
17
10% {
18
+ background-image: url(${ gueio3 } );
19
+ transform: translateY(0) scale(1.8) rotate(calc(-2deg * ${ calcBase } ));
20
+ }
21
+ 15% {
12
22
background-image: url(${ gueio2 } );
13
- transform: rotate(10deg) translateY(-10px ) scale(1.8);
23
+ transform: translateY(-5px ) scale(1.8) rotate(calc(-3deg * ${ calcBase } ) );
14
24
}
15
25
20% {
16
- background-image: url(${ gueio3 } );
17
- transform: rotate(5deg) translateY(-10px) scale(1.8);
26
+ background-image: url(${ gueio1 } );
27
+ transform: translateY(-5px) scale(1.8) rotate(calc(-4deg * ${ calcBase } ));
28
+ }
29
+ 25% {
30
+ background-image: url(${ gueio2 } );
31
+ transform: translateY(-5px) scale(1.8) rotate(calc(-5deg * ${ calcBase } ));
18
32
}
19
33
30% {
34
+ background-image: url(${ gueio3 } );
35
+ transform: translateY(-5px) scale(1.8) rotate(calc(-5deg * ${ calcBase } ));
36
+ }
37
+ 35% {
20
38
background-image: url(${ gueio2 } );
21
- transform: rotate(5deg) translateY(-10px) scale(1.8);
39
+ transform: translateY(-10px) scale(1.8) rotate(calc(-5deg * ${ calcBase } ) );
22
40
}
23
41
40% {
24
42
background-image: url(${ gueio1 } );
25
- transform: rotate(5deg) translateY(-10px) scale(1.8);
43
+ transform: translateY(-10px) scale(1.8) rotate(calc(-2.5deg * ${ calcBase } ) );
26
44
}
27
- 70% {
45
+ 45% {
46
+ background-image: url(${ gueio2 } );
47
+ transform: translateY(-10px) scale(1.8);
48
+ }
49
+ 50% {
50
+ background-image: url(${ gueio3 } );
51
+ transform: translateY(-10px) scale(1.8);
52
+ }
53
+ 55% {
54
+ background-image: url(${ gueio2 } );
55
+ transform: translateY(-10px) scale(1.8);
56
+ }
57
+ 60% {
28
58
background-image: url(${ gueio1 } );
29
- transform: rotate(20deg) translateY(0px ) scale(1.8);
59
+ transform: translateY(-10px ) scale(1.8);
30
60
}
31
- 85 % {
61
+ 65 % {
32
62
background-image: url(${ gueio2 } );
33
- transform: rotate(5deg) translateY(0px ) scale(1.8);
63
+ transform: translateY(-10px ) scale(1.8);
34
64
}
35
- 95 % {
65
+ 70 % {
36
66
background-image: url(${ gueio3 } );
37
- transform: rotate(0deg) translateY(0px ) scale(1.8);
67
+ transform: translateY(-10px ) scale(1.8);
38
68
}
39
- 100 % {
69
+ 75 % {
40
70
background-image: url(${ gueio2 } );
41
- transform: rotate(-5deg) translateY(0px) scale(1.8);
71
+ transform: translateY(-10px) scale(1.8);
72
+ }
73
+ 80% {
74
+ background-image: url(${ gueio1 } );
75
+ transform: translateY(-10px) scale(1.8);
42
76
}
43
77
` ;
44
78
@@ -49,9 +83,5 @@ export const Wrapper = styled.figure`
49
83
height: 19px;
50
84
background-image: url(${ gueio1 } );
51
85
transform: scale(1.8);
52
- animation: ${ voante } 1.5s linear infinite;
86
+ animation: ${ voante } 3s linear infinite;
53
87
` ;
54
-
55
-
56
-
57
-
0 commit comments