Skip to content

Commit 1493825

Browse files
Merge pull request #1 from thales-victor/master
Fluidez do movimento do Gueio
2 parents f125c02 + 810c21a commit 1493825

File tree

3 files changed

+51
-20
lines changed

3 files changed

+51
-20
lines changed

src/components/GueioVoante/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { Wrapper, Gueio1, Gueio2, Gueio3 } from './styles';
2+
import { Wrapper } from './styles';
33

44

55
const GueioVoante = () => (

src/components/GueioVoante/styles.js

+49-19
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,76 @@ import gueio1 from "../../img/gueio_voando1.png";
33
import gueio2 from "../../img/gueio_voando2.png";
44
import gueio3 from "../../img/gueio_voando3.png";
55

6+
const calcBase = 3;
7+
68
const voante = keyframes`
79
0% {
810
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}));
1016
}
1117
10% {
18+
background-image: url(${gueio3});
19+
transform: translateY(0) scale(1.8) rotate(calc(-2deg * ${calcBase}));
20+
}
21+
15% {
1222
background-image: url(${gueio2});
13-
transform: rotate(10deg) translateY(-10px) scale(1.8);
23+
transform: translateY(-5px) scale(1.8) rotate(calc(-3deg * ${calcBase}));
1424
}
1525
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}));
1832
}
1933
30% {
34+
background-image: url(${gueio3});
35+
transform: translateY(-5px) scale(1.8) rotate(calc(-5deg * ${calcBase}));
36+
}
37+
35% {
2038
background-image: url(${gueio2});
21-
transform: rotate(5deg) translateY(-10px) scale(1.8);
39+
transform: translateY(-10px) scale(1.8) rotate(calc(-5deg * ${calcBase}));
2240
}
2341
40% {
2442
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}));
2644
}
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% {
2858
background-image: url(${gueio1});
29-
transform: rotate(20deg) translateY(0px) scale(1.8);
59+
transform: translateY(-10px) scale(1.8);
3060
}
31-
85% {
61+
65% {
3262
background-image: url(${gueio2});
33-
transform: rotate(5deg) translateY(0px) scale(1.8);
63+
transform: translateY(-10px) scale(1.8);
3464
}
35-
95% {
65+
70% {
3666
background-image: url(${gueio3});
37-
transform: rotate(0deg) translateY(0px) scale(1.8);
67+
transform: translateY(-10px) scale(1.8);
3868
}
39-
100% {
69+
75% {
4070
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);
4276
}
4377
`;
4478

@@ -49,9 +83,5 @@ export const Wrapper = styled.figure`
4983
height: 19px;
5084
background-image: url(${gueio1});
5185
transform: scale(1.8);
52-
animation: ${voante} 1.5s linear infinite;
86+
animation: ${voante} 3s linear infinite;
5387
`;
54-
55-
56-
57-

src/components/MainJedi/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export const MainJedi = styled.main`
77
height: 100vh;
88
border-left: 6px solid var(--color-gueio-primary);
99
color: white;
10+
overflow: hidden;
1011
1112
& > ${BarJedi} {
1213
display:flex;

0 commit comments

Comments
 (0)