-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuttons.css
More file actions
126 lines (108 loc) · 2.3 KB
/
buttons.css
File metadata and controls
126 lines (108 loc) · 2.3 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
@property --gradient-angle {
syntax: '<angle>';
initial-value: 45deg;
inherits: false;
}
.spbuttons {
display: flex;
position: relative;
gap: 2rem;
transition: all 250ms ease-in-out;
cursor: pointer;
}
#ctmbutton {
position: relative;
text-decoration: none;
color: #fff;
background: linear-gradient(var(--gradient-angle), #0ce39a, #69007f, #fc0987);
padding: 10px 20px;
border-radius: 10px;
font-weight: 300;
font-size: large;
cursor: pointer;
}
#ctmbutton #ctme {
position: relative;
cursor: pointer;
}
#ctmbutton::before {
content: "";
position: absolute;
inset: 1px;
background: linear-gradient(45deg, rgb(63, 63, 63), rgb(0, 0, 0));
border-radius: 10px;
}
#ctmbutton:hover {
animation: rotateGradient 6s linear infinite;
}
#ctmbutton::before:hover {
inset: 1px 1px 1.5px 2px;
}
@keyframes rotateGradient {
0% {
--gradient-angle: 45deg;
}
20% {
--gradient-angle: 150deg;
}
100% {
--gradient-angle: 405deg;
}
}
#ctmbutton::after {
content: "";
position: absolute;
inset: 0px;
background: linear-gradient(15deg, #0ce39a, #69007f, #fc0987);
border-radius: 9px;
opacity: 0;
filter: blur(20px);
z-index: -1;
}
#ctmbutton:hover::after {
opacity: 1;
}
#cvbutton {
position: relative;
text-decoration: none;
color: #fff;
background: linear-gradient(45deg, #0ce39a, #69007f, #fc0987);
padding: 10px 20px;
border-radius: 10px;
font-weight: 300;
font-size: large;
transition: all 50ms ease-in-out;
}
#cvbutton #cvdown {
position: relative;
}
#cvbutton::before {
content: "";
position: absolute;
border-radius: 10px;
inset: 2px;
background: linear-gradient(180deg, rgba(63, 63, 63, 0.7), rgb(0, 0, 0));
backdrop-filter: blur(17px);
-webkit-backdrop-filter: blur(17px);
}
#cvbutton:hover::before {
inset: 3px;
}
#cvbutton:hover {
font-weight: 500;
background: linear-gradient(315deg, #0ce39a, #69007f, #fc0987);
}
#cvbutton::after {
content: "";
position: absolute;
inset: 0px;
background: linear-gradient(315deg, #0ce39a, #69007f, #fc0987);
border-radius: 9px;
transition: 0.3s;
opacity: 0;
filter: blur(20px);
z-index: -1;
}
#cvbutton:hover::after {
opacity: 1;
}