-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
72 lines (59 loc) · 1011 Bytes
/
Copy pathstyle.css
File metadata and controls
72 lines (59 loc) · 1011 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: linear-gradient(blue, red);
}
.gameboard {
bottom: 50%;
width: 600px;
height: 500px;
border: 1px solid #333;
margin: 0 auto;
position: relative;
overflow: hidden;
background-image: url(images/Cenario.png);
background-size: cover;
}
.obstaculo {
position: absolute;
bottom: 0;
width: 80px;
animation: obstaculo-animacao 1.2s infinite linear;
}
.gato {
width: 130px;
position: absolute;
bottom: 0;
right: 65%;
}
.jump {
animation: jump 500ms ease-out;
}
@keyframes obstaculo-animacao {
from{
right: -80px;
}
to {
right: 100%;
}
}
@keyframes jump {
0% {
bottom: 0;
}
40% {
bottom: 180px;
}
50% {
bottom: 180px;
}
65% {
bottom: 180px
}
100% {
bottom: 0;
}
}