-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
53 lines (42 loc) · 796 Bytes
/
style.css
File metadata and controls
53 lines (42 loc) · 796 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
:root {
--dimension-square: 50px;
}
.container {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.animation-div {
display: flex;
flex-direction: row;
gap: calc(var(--dimension-square) + 5px);
}
.square {
width: var(--dimension-square);
height: var(--dimension-square);
animation: rotation 4s infinite ease normal;
}
@keyframes rotation {
0% {
transform: rotate(45deg);
}
25% {
transform: rotate(135deg);
}
75% {
transform: rotate(225deg);
}
100% {
transform: rotate(315deg);
}
}
.square:nth-child(1) {
background-color: red;
}
.square:nth-child(2) {
background-color: orange;
}
.square:nth-child(3) {
background-color: blue;
}