-
Notifications
You must be signed in to change notification settings - Fork 136
Expand file tree
/
Copy pathliquid.css
More file actions
76 lines (68 loc) · 1.58 KB
/
Copy pathliquid.css
File metadata and controls
76 lines (68 loc) · 1.58 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
body {
margin: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: #0f1117;
font-family: system-ui;
}
.liquid-btn {
position: relative;
padding: 18px 55px;
font-size: 20px;
color: #fff;
border: none;
cursor: pointer;
background: linear-gradient(135deg, #3a1c71, #d76d77, #ffaf7b);
border-radius: 14px;
overflow: hidden;
transition: transform 0.2s ease;
}
.liquid-btn .text {
position: relative;
z-index: 3;
font-weight: 600;
letter-spacing: 1px;
}
.liquid-btn:hover {
transform: translateY(-6px) scale(1.03);
}
/* Blobs */
.blob {
position: absolute;
width: 120px;
height: 120px;
background: rgba(255, 255, 255, 0.09);
border-radius: 50%;
filter: blur(26px);
animation: float 6s infinite ease-in-out;
z-index: 0;
}
.blob:nth-child(2) { top: -40px; left: -20px; animation-duration: 5s; }
.blob:nth-child(3) { bottom: -40px; left: 30px; animation-duration: 7s; }
.blob:nth-child(4) { top: 10px; right: -40px; animation-duration: 6s; }
.blob:nth-child(5) { bottom: -30px; right: 20px; animation-duration: 8s; }
@keyframes float {
0% { transform: translate(0,0) scale(1); }
50% { transform: translate(25px, -20px) scale(1.2); }
100% { transform: translate(0,0) scale(1); }
}
/* Ripple explosion */
.ripple {
position: absolute;
width: 10px;
height: 10px;
background: rgba(255,255,255,0.4);
border-radius: 50%;
pointer-events: none;
transform: translate(-50%,-50%);
animation: explode 0.6s ease-out forwards;
}
@keyframes explode {
to {
width: 300px;
height: 300px;
opacity: 0;
}
}