-
Notifications
You must be signed in to change notification settings - Fork 0
/
property.html
62 lines (54 loc) · 1.32 KB
/
property.html
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
<!DOCTYPE html>
<html>
<head>
<style>
@property --rotation-angle {
syntax: "<angle>";
inherits: false;
initial-value: 0deg;
}
body {
background-color: rgb(29, 29, 31);
display: flex;
justify-content: center;
align-items: center;
height: 80vh;
}
.box {
position: relative;
width: 200px;
height: 200px;
border-radius: 10px;
background-color: rgb(29, 29, 31);
}
.box::before,
.box::after {
content: "";
position: absolute;
background-color: red;
width: 100%;
height: 100%;
z-index: -1;
padding: 2px;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
border-radius: inherit;
background-image: conic-gradient(from var(--rotation-angle), #ea2dd8, #007aff, #1abc9c);
animation: rotatex 2s linear infinite;
}
.box::after {
filter: blur(60px);
}
@keyframes rotatex {
to {
--rotation-angle: 360deg
}
}
</style>
</head>
<body>
<div class="box">
</div>
</body>
</html>