-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrgbshadow.html
70 lines (65 loc) · 1.31 KB
/
rgbshadow.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
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html lang="en">
<head>
<style>
body {
background: black;
}
div.center {
display: flex;
align-items: center;
justify-content: center;
margin-top: 50vh;
}
div.grad {
width: 100px;
height: 100px;
position: absolute;
background: linear-gradient(0deg, #000, #272727);
}
div.grad:after,
div.grad:before {
content: "";
width: 104px;
height: 104px;
background: linear-gradient(
45deg,
blueviolet,
#d100ff,
#ff0040,
orange,
yellow
);
background-size: 400%;
z-index: -1;
position: absolute;
left: -2px;
top: -2px;
animation: slide 20s infinite linear;
}
div.grad:after {
filter: blur(50px);
}
@keyframes slide {
0% {
background-position: 0 0;
}
50% {
background-position: 400% 0;
}
100% {
background-position: 0 0;
}
}
</style>
</head>
<body>
<div class="center">
<div class="grad">
<!--
https://dev.to/carlyraejepsenstan/how-do-you-make-that-css-razer-animation-4opo
-->
</div>
</div>
</body>
</html>