-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuttons.css
69 lines (59 loc) · 1.34 KB
/
buttons.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
@import url("https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap");
@import "vars.css";
.wrapper .btns {
display: flex;
margin: 30px 0 20px 0;
}
.btns a {
position: relative;
margin: 0 20px;
height: 60px;
width: 200px;
display: block;
line-height: 60px;
border-radius: 10px;
text-decoration: none;
color: var(--background);
font-size: 18px;
font-weight: 500;
letter-spacing: 1px;
overflow: hidden;
box-shadow: 0 0px 15px var(--color);
}
.btns a:hover {
box-shadow: 0 0px 20px var(--color);
}
.btns a:first-child {
background: linear-gradient(90deg, var(--secondary-color), var(--color));
}
.btns a:last-child {
background: linear-gradient(90deg, var(--color), var(--secondary-color));
}
.btns a:first-child:hover {
background: linear-gradient(90deg, var(--color), var(--secondary-color));
}
.btns a:last-child:hover {
background: linear-gradient(90deg, var(--secondary-color), var(--color));
}
.btns a > span {
/*Styling for the shadow */
position: absolute;
/* Ripple color */
background: var(--background);
transform: translate(-50%, -50%);
border-radius: 50%;
pointer-events: none;
animation: ripples 0.6s linear infinite;
}
@keyframes ripples {
0% {
width: 0px;
height: 0px;
opacity: 0.5;
}
100% {
width: 500px;
height: 500px;
opacity: 0;
}
}