-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
52 lines (49 loc) · 945 Bytes
/
style.css
File metadata and controls
52 lines (49 loc) · 945 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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
.bg {
background-repeat: no-repeat;
background-position: center;
background-size: cover;
image-rendering: pixelated;
height: 100vh;
width: 100vw;
}
.cat {
width: 32px;
height: 32px;
position: absolute;
top: 60%;
left:50%;
background: url(Cat_sprite.png) no-repeat;
transform: translate(-50% -50%);
transform: scale(15);
image-rendering: pixelated;
background-size: cover;
}
.animation{
animation: move 2.6s steps(37) 1;
}
@keyframes move{
0% {background-position: 0 0;}
100% {background-position: -1184px 0;}
}
button{
position: absolute;
top:10%;
left: 42.5%;
border: none;
background-color: transparent;
cursor: pointer;
width: 252px;
height: 81px;
padding: 0;
}
.button_img {
width:252px;
height:81px;
border: none;
image-rendering: pixelated;
}