Liquid Shine Button
A gradient button with a liquid metal shine sweep that follows an organic curve on hover.
Embed this component
Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/liquid-shine-button.
<iframe src="/embed/liquid-shine-button" sandbox="allow-scripts" loading="lazy" title="Liquid Shine Button" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>Implementation code
Copy the HTML and CSS for Liquid Shine Button. The HTML and CSS variants are self-contained; framework variants assume that framework's project setup.
HTML
<button class="liquid-shine">Hover Me</button>CSS
.liquid-shine {
position: relative;
overflow: hidden;
padding: 16px 44px;
border: none;
border-radius: 16px;
background: linear-gradient(135deg, #8b5cf6, #ec4899, #f59e0b);
background-size: 200% 200%;
color: #fff;
font-weight: 700;
font-size: 15px;
cursor: pointer;
box-shadow: 0 12px 40px rgba(139, 92, 246, 0.4);
animation: shine-bg 6s ease-in-out infinite;
}
.liquid-shine::before {
content: "";
position: absolute;
top: 0;
bottom: 0;
width: 40%;
background: linear-gradient(120deg, transparent, rgba(255,255,255,0.7) 50%, transparent);
transform: skewX(-20deg) translateX(-150%);
animation: liquid-sweep 3.5s ease-in-out infinite;
}
@keyframes liquid-sweep {
0%, 60% { transform: skewX(-20deg) translateX(-150%); }
100% { transform: skewX(-20deg) translateX(400%); }
}
@keyframes shine-bg {
0%, 100% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
}Where Liquid Shine Button fits
- Primary CTAs
- Feature Buttons
- Marketing
Topics
- #shine
- #sweep
- #liquid
- #gradient