-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
116 lines (100 loc) · 1.64 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
:root {
--background-color: #224941;
--color: #f5f5f1;
--dark-color: #010f1c;
font-size: 62.5%;
}
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
background: var(--background-color) url('./img/bg.jpg') no-repeat center
center;
color: var(--color);
display: flex;
flex-direction: column;
align-items: center;
font-family: 'Poppins', sans-serif;
font-size: 1.6rem;
overflow: hidden;
min-height: 100vh;
}
.container {
display: flex;
justify-content: center;
align-items: center;
height: 30rem;
width: 30rem;
margin: auto;
position: relative;
transform: scale(1);
}
h1 {
text-align: center;
}
.circle {
background-color: var(--dark-color);
height: 100%;
width: 100%;
position: absolute;
top:0;
left:0;
z-index: -1;
border-radius: 50%;
}
.gradient-circle {
height: 32rem;
width: 32rem;
position: absolute;
top: -1rem;
left: -1rem;
z-index: -2;
border-radius: 50%;
}
.pointer-container{
position: absolute;
top: -4rem;
left: 14rem;
width: 2rem;
height: 19rem;
animation: rotate 7.5s linear forwards infinite;
transform-origin: bottom center;
}
.pointer{
background-color: var(--color);
height: 2rem;
width: 2rem;
border-radius: 50%;
}
.container.grow {
animation: grow 3s linear forwards;
}
.container.shrink {
animation: shrink 3s linear forwards;
}
@keyframes rotate {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@keyframes grow {
from {
transform: scale(1);
}
to {
transform: scale(1.2);
}
}
@keyframes shrink {
from {
transform: scale(1.2);
}
to {
transform: scale(1);
}
}