-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
94 lines (84 loc) · 1.49 KB
/
Copy pathstyle.css
File metadata and controls
94 lines (84 loc) · 1.49 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-size: 62.5%;
}
body {
font-family: "Poppins", sans-serif;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: rgb(243, 250, 236);
}
h1 {
text-transform: uppercase;
color: #fff;
font-weight: 700;
font-size: 5rem;
margin: 2rem 0;
}
a {
position: relative;
padding: 20px;
display: bock;
text-decoration: none;
text-transform: uppercase;
border-radius: 10px;
width: 200px;
overflow: hidden;
font-weight: 700;
text-align: center;
}
a span {
position: relative;
z-index: 1;
color: #fff;
font-size: 20px;
letter-spacing: 8px;
}
a:hover .liquid {
top: -120px;
}
a .liquid {
position: absolute;
left: 0;
top: -80px;
width: 200px;
height: 200px;
background: rgba(238, 57, 94, 255);
box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.295);
transition: 0.5s;
}
a .liquid:before,
a .liquid:after {
content: "";
position: absolute;
width: 200%;
height: 200%;
top: 0;
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 5s linear infinite;
}
@keyframes animate {
0% {
transform: translate(-50%, -75%) rotate(0deg);
}
100% {
transform: translate(-50%, -75%) rotate(360deg);
}
}