-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
78 lines (78 loc) · 1.36 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
*{
box-sizing: border-box;
}
body{
min-height: 100vh;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
align-items: flex-start;
}
.container{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 300px;
height: 300px;
display: flex;
justify-content: center;
align-items: center;
}
.box-1, .box-2{
display: flex;
justify-content: center;
align-items: center;
width: 115px;
height: 115px;
padding: 3px;
background: transparent;
}
.box-1{
border: 2px solid grey;
position: absolute;
animation: clockwise 3s ease-in-out 0s infinite alternate;
}
.box-2{
border: 2px solid black;
left: -115px;
width: 115px;
height: 115px;
background-color: transparent;
transform: rotate(45deg);
animation: xclockwise 3s ease-in-out 0s infinite alternate;
}
@keyframes clockwise {
0%{
transform: rotate(0deg);
}
25%{
transform: rotate(90deg);
}
50%{
transform: rotate(180deg);
}
75%{
transform: rotate(270deg);
}
100%{
transform: rotate(360deg);
}
}
@keyframes xclockwise {
0%{
transform: rotate(45deg);
}
25%{
transform: rotate(-45deg);
}
50%{
transform: rotate(-135deg);
}
75%{
transform: rotate(-225deg);
}
100%{
transform: rotate(-315deg);
}
}