Back to Components

Liquid Button

A button with a liquid morphing effect that creates organic, flowing animations on hover. The shape appears to melt and reform dynamically.

Morphing Button Interactive

Live Preview

HTML

<button class="liquid-button">Click Me</button>

CSS

.liquid-button {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.liquid-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.liquid-button:hover::before {
    width: 300px;
    height: 300px;
}

.liquid-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}