-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwheel_style.css
More file actions
55 lines (49 loc) · 895 Bytes
/
wheel_style.css
File metadata and controls
55 lines (49 loc) · 895 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
54
55
/* styles.css */
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #f0f0f0;
}
.gear-container {
position: relative;
width: 300px;
height: 300px;
}
.gear {
position: absolute;
border: 5px solid #333;
border-radius: 50%;
background: radial-gradient(circle, #e0e0e0 40%, #b0b0b0);
}
#gear1 {
width: 100px;
height: 100px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 1;
}
#gear2 {
width: 150px;
height: 150px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 0;
}
/* Animation */
.gear.rotate {
animation: rotate 2s linear infinite;
}
@keyframes rotate {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}