-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathButton-Ripple.css
55 lines (49 loc) · 1.11 KB
/
Button-Ripple.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
@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700,800,900&displayer=swap');
#ripples{
margin: 0;
padding: 0;
height: 50vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
font-family: 'Poppins', sans-serif;
background: #040d15;
}
.Ripple a {
position: relative;
display: inline-block;
padding: 12px 36px;
margin: 15px 15px;
color: #fff;
text-decoration: none;
text-transform: uppercase;
font-size: 24px;
letter-spacing: 2px;
border-radius: 40px;
overflow: hidden;
background: linear-gradient(90deg, #0162c8, #55e7fc);
}
.Ripple a:nth-child(2) {
background: linear-gradient(90deg, #755bea, #ff72c0);
}
.Ripple span {
position: absolute;
background: #fff;
transform: translate(-50%, -50%);
pointer-events: none;
border-radius: 50%;
animation: animates 1s linear infinite;
}
@keyframes animates {
0% {
width: 0px;
height: 0px;
opacity: 0.5;
}
100% {
width: 500px;
height: 500px;
opacity: 0;
}
}