-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
89 lines (88 loc) · 1.79 KB
/
Copy pathstyle.css
File metadata and controls
89 lines (88 loc) · 1.79 KB
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
@import url('https://fonts.googleapis.com/css2?family=Satisfy&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Satisfy', cursive;
}
body {
overflow: hidden;
}
section {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: #f1f1f1;
}
section .box {
position: absolute;
width: 450px;
height: 450px;
}
section .box::before {
content: '';
position: absolute;
top: 0;
left: 50%;
width: 100%;
height: 100%;
background: linear-gradient(to right, #000, transparent);
opacity: 0.1;
transform: rotate(45deg);
transform-origin: left;
}
section .box .circle {
position: relative;
width: 100%;
height: 100%;
background: linear-gradient(135deg,#fff,#e4e3e8);
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
z-index: 1;
}
section .box .circle::before {
content: '';
position: absolute;
top: 5px;
left: 5px;
right: 5px;
bottom: 5px;
background: linear-gradient(315deg,#fff,#e4e3e8);
border-radius: 50%;
}
section .box .circle h2 {
position: absolute;
z-index: 2;
font-size: 4em;
color: #ff2a2a;
text-align: center;
}
section i {
position: absolute;
background: #ff2a2a;
border-radius: 100%;
animation: animate 5s linear infinite;
}
section i:nth-child(even) {
background: transparent;
border: 1px solid #ff2a2a;
}
@keyframes animate {
0% {
transform: translateY(0);
opacity: 0;
}
10% {
opacity: 1;
}
90% {
opacity: 1;
}
100% {
transform: translateY(-2000%);
opacity: 0;
}
}