-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
64 lines (59 loc) · 1.18 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
body {
background-color: #000;
margin: 0;
padding: 0;
color: white;
}
h1 {
text-align: center;
margin: 0;
background-color: tomato;
padding: 10px;
}
.shadow {
position: relative;
width: 400px;
height: 250px;
background: linear-gradient(#111, #333);
margin: 100px auto auto;
padding: 10px 30px;
line-height: 2;
text-align: center;
}
.shadow .h1{
background: linear-gradient(50deg,red,green,yellow,lime,purple);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-shadow: 0 0 3px lime;
}
.shadow p{
background: linear-gradient(50deg,red,green,yellow,lime,purple);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.shadow:before, .shadow:after {
content: '';
position: absolute;
top: -2px;
left: -2px;
width: calc(100% + 4px);
height: calc(100% + 4px);
background: linear-gradient(50deg, red, green, blue, yellow, lime, purple);
background-size: 400%;
z-index: -1;
animation: animate 20s linear infinite;
}
.shadow:after {
filter: blur(10px);
}
@keyframes animate {
0% {
background-position: 0 0;
}
50% {
background-position: 400%;
}
100% {
background-position: 0 0;
}
}