Skip to content

Liquid Morph Button

Button with organic liquid morphing animation on hover

Liquid Morph Button

by FreeCsStyles Dev's

AdvancedOrganic
🌐⚛️💚🅰️🔥
#liquid#morph#organic#creative#blob#fluid

Embed this component

Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/liquid-button.

<iframe src="/embed/liquid-button" sandbox="allow-scripts" loading="lazy" title="Liquid Morph Button" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>

Implementation code

Copy the HTML and CSS for Liquid Morph Button, or grab a framework-specific implementation. The HTML and CSS variants are self-contained; framework variants assume that framework's project setup.

HTML
<button class="liquid-button">Liquid</button>
CSS
.liquid-button {
  padding: 1.25rem 2.5rem;
  background: linear-gradient(to right, #a855f7, #ec4899);
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: liquid-morph 4s ease-in-out infinite;
  transition: all 0.3s ease;
}

.liquid-button:hover {
  transform: scale(1.1);
  box-shadow: 0 20px 40px rgba(168, 85, 247, 0.5);
}

@keyframes liquid-morph {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  75% { border-radius: 40% 60% 50% 50% / 40% 50% 60% 50%; }
}
LWC — HTML template
<template>
  <button class="liquid-button" onclick={handleClick}>
    <slot>Liquid</slot>
  </button>
</template>
LWC — JavaScript
import { LightningElement, api } from 'lwc';

export default class LiquidButton extends LightningElement {
  @api label = 'Liquid';
  
  handleClick() {
    this.dispatchEvent(new CustomEvent('buttonclick', {
      bubbles: true,
      composed: true
    }));
  }
}
LWC — CSS
.liquid-button {
  padding: 1.25rem 2.5rem;
  background: linear-gradient(to right, #a855f7, #ec4899);
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: liquid-morph 4s ease-in-out infinite;
  transition: all 0.3s ease;
}

.liquid-button:hover {
  transform: scale(1.1);
  box-shadow: 0 20px 40px rgba(168, 85, 247, 0.5);
}

@keyframes liquid-morph {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  75% { border-radius: 40% 60% 50% 50% / 40% 50% 60% 50%; }
}
LWC — Configuration
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
  <apiVersion>59.0</apiVersion>
  <isExposed>true</isExposed>
  <targets>
    <target>lightning__AppPage</target>
    <target>lightning__RecordPage</target>
    <target>lightning__HomePage</target>
  </targets>
</LightningComponentBundle>

Where Liquid Morph Button fits

  • Creative Sites
  • Art Portfolios
  • Interactive Experiences
  • Playful UI

Interaction states & animations

  • Morph
  • Hover
  • Organic

Topics

  • #liquid
  • #morph
  • #organic
  • #creative
  • #blob
  • #fluid

Accessibility notes

Provide reduced motion alternative. Ensure button remains clickable during animation.

Browser support

  • All modern browsers