-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
127 lines (115 loc) · 1.97 KB
/
style.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
.square{
position: absolute;
width: 200px;
height: 200px;
text-align: center;
vertical-align: middle;
line-height: 200px;
font-size: 20px;
color: white;
}
.black-square{
top: 0;
left: 0;
background-color: black;
z-index: 10;
}
.green-square{
top: 0;
left: 100%;
margin-left: -200px;
background-color: green;
z-index: 7;
}
.red-square{
top: 100%;
left: 100%;
margin-left: -200px;
margin-top: -200px;
background-color: red;
z-index: 5;
}
.avoid-clicks{
pointer-events: none;
}
.move-red-first{
animation: move-red-first 10s linear;
animation-fill-mode: forwards;
}
.move-red-second{
animation: move-red-second 10s linear;
animation-fill-mode: forwards;
}
@keyframes move-black {
0%, 100%{
top: 0;
left: 0;
}
20%, 25%, 90%{
top: 0;
left: 100%;
margin-left: -200px;
margin-top: 0;
}
40%, 45%, 80%{
top: 100%;
left: 100%;
margin-left: -200px;
margin-top: -200px;
}
60%, 65%{
top: 100%;
left: 0;
margin-top: -200px;
margin-left: 0;
}
}
@keyframes move-green{
0%{
top: 0;
left: 100%;
margin-left: -200px;
}
50%, 60%{
top: 100%;
left: 0;
margin-top: -200px;
margin-left: 0;
}
}
@keyframes move-red-first {
50%{
top: 100%;
left: 0;
margin-top: -200px;
margin-left: 0;
}
100%{
top: 0;
left: 0;
margin-top: 0;
margin-left: 0;
z-index: 11;
}
}
@keyframes move-red-second {
0%{
top: 0;
left: 0;
margin-top: 0;
margin-left: 0;
z-index: 11;
}
50%{
top: 100%;
left: 0;
margin-top: -200px;
margin-left: 0;
}
100%{
top: 100%;
left: 100%;
margin-left: -200px;
margin-top: -200px;
}
}