-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathliquid button.css
More file actions
76 lines (74 loc) · 1.25 KB
/
Copy pathliquid button.css
File metadata and controls
76 lines (74 loc) · 1.25 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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: consolas;
}
body{
display: flex;
justify-content: center;
align-items: center;
min-height: 50vh;
min-width: 100vw;
background: #0c0c0c;
}
a{
position: relative;
padding: 20px 50px;
display: block;
text-decoration: none;
text-transform: uppercase;
width: 200px;
overflow: hidden;
}
a span{
position: relative;
z-index: 1;
color: #fff;
font-size: 20px;
letter-spacing: 8px;
}
a .liquid{
position: absolute;
left: 0;
top: 0;
width: 200px;
height: 200px;
background: #4793ff;
box-shadow: inset 0 0 50px rgba(0,0,0,.5);
transition: 0.5s;
}
a:hover .liquid{
top:-120px;
}
a .liquid:before,
a .liquid:after
{
content: '';
position: absolute;
width: 200%;
height: 200%;
top: -80px;
left: 50%;
transform: translate(-50%,-75%);
}
a .liquid:before
{
border-radius: 45%;
background: rgba(20,20,20,1);
animation: animate 5s linear infinite;
}
a .liquid:after{
border-radius: 40%;
background: rgba(20,20,20,0.5);
animation: animate 10s linear infinite;
}
@keyframes animate
{
0%{
transform: translate(-50%,-75%) rotate(0deg);
}
100%{
transform: translate(-50%,-75%) rotate(360deg);
}
}