-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
63 lines (57 loc) · 974 Bytes
/
index.css
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
body {
display: flex;
justify-content: center;
align-items: center;
box-sizing: border-box;
font-family: "Special Elite", cursive;
margin: 0 auto;
padding: 0;
width: 100%;
height: 100%;
}
.container {
display: flex;
flex-wrap: wrap;
overflow: hidden;
width: 90vw;
height: 90vh;
border: 3px solid black;
}
.content {
flex: 0 0 auto;
width: 45vw;
height: 45vh;
position: relative;
}
@media only screen and (max-width: 600px) {
.container {
width: 80vw;
height: 80vh;
}
.content {
width: 40vw;
height: 40vh;
}
}
.box {
position: absolute;
width: 200px;
height: 200px;
animation-name: moveBox;
animation-direction: alternate;
animation-iteration-count: infinite;
border-radius: 5px;
}
@keyframes moveBox {
0% {
transform: translate(0, 0);
opacity: 1;
}
50% {
opacity: 0.3;
}
100% {
opacity: 1;
transform: translate(var(--boxTranslateX), var(--boxTranslateY));
}
}