-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
60 lines (58 loc) · 1.15 KB
/
Copy pathstyle.css
File metadata and controls
60 lines (58 loc) · 1.15 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: rgb(58, 56, 56);
}
div {
width: 200px;
height: 200px;
box-shadow: 16px 14px 20px #0000008c;
border-radius: 10px;
position: relative;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
}
div::before{
content: "";
background-image: conic-gradient(
rgb(0, 255, 13) 25deg,
rgba(255, 0, 0, 0.6) 70deg,
transparent 140deg
);
width: 150%;
height: 150%;
position: absolute;
animation: rotate 2s linear infinite;
}
div::after{
content: "Animation";
width: 190px;
height: 190px;
background: rgb(58, 56, 56);
position: absolute;
border-radius: 10px;
display: flex;
justify-content: center;
align-items: center;
color: orange;
font-size: larger;
letter-spacing: 5px;
box-shadow: inset 20px 20px 20px #0000008c;
}
@keyframes rotate {
0%{
transform: rotate(0deg);
}
100%{
transform: rotate(-360deg);
}
}