-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLiquid-button.css
More file actions
79 lines (70 loc) · 1.6 KB
/
Liquid-button.css
File metadata and controls
79 lines (70 loc) · 1.6 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
@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700,800,900&displayer=swap');
#liquid-button{
margin: 0;
padding: 0;
box-sizing: border-box;
display: flex;
justify-content: center;
align-items: center;
height: 50vh;
font-family: 'Poppins', sans-serif;
background: #0c0c0c;
}
#liquid-button a {
position: relative;
padding: 20px 50px;
display: block;
text-decoration: none;
text-transform: uppercase;
left: 3%;
overflow: hidden;
}
#liquid-button a span {
position: relative;
z-index: 5;
color: #fff;
font-size: 20px;
letter-spacing: 8px;
text-align: center;
}
#liquid-button a .liquid {
position: absolute;
left: 0;
top: -80px;
width: 200px;
height: 200px;
background: #4973ff;
box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
transition: 0.5s;
}
#liquid-button :hover .liquid {
top: -120px;
}
#liquid-button a .liquid::before,
#liquid-button a .liquid::after {
content: '';
position: absolute;
width: 200%;
height: 200%;
top: 0;
left: 50%;
transform: translate(-50%, -75%);
}
#liquid-button a .liquid::before {
border-radius: 45%;
background: rgba(20, 20, 20, 1);
animation: animate-liquid 5s linear infinite;
}
#liquid-button a .liquid::after {
border-radius: 40%;
background: rgba(20, 20, 20, 0.5);
animation: animate-liquid 10s linear infinite;
}
@keyframes animate-liquid {
0% {
transform: translate(-50%, -75%) rotate(0deg);
}
100% {
transform: translate(-50%, -75%) rotate(360deg);
}
}