-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
72 lines (63 loc) · 1.3 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
65
66
67
68
69
70
71
72
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
height: 100vh;
background: #000;
display: flex;
justify-content: center;
align-items: center;
margin: 0;
flex-wrap: wrap;
}
button {
border: none;
outline: none;
padding: 20px 70px;
background: linear-gradient(to left, #4699ff, #00e5ff);
margin: 50px;
border-radius: 30em;
font-size: 20px;
color: white;
cursor: pointer;
position: relative;
text-transform: uppercase;
}
button:nth-child(2) {
background: linear-gradient(to left, #37ff73, #57ffe0);
}
button:nth-child(3) {
background: linear-gradient(to left, #fa6c9f, #ffe140);
}
button::before {
content: "";
width: 100%;
height: 100%;
background: linear-gradient(to left, #4699ff, #00e5ff);
left: 0;
top: 15px;
border-radius: 30em;
filter: blur(50px);
z-index: -9999999;
position: absolute;
}
button:nth-child(2)::before {
background: linear-gradient(to left, #37ff73, #57ffe0);
}
button:nth-child(3)::before {
background: linear-gradient(to left, #fa6c9f, #ffe140);
}
button:hover {
filter: brightness(1.2);
animation: animate is linear forwards;
}
@keyframes animate {
0% {
filter: hue-rotate(0deg);
}
100% {
filter: hue-rotate(360deg);
}
}