Skip to content

Bubble Pop Button

Iridescent bubbles float upward and pop with expanding rings on a gradient backdrop

Bubble Pop Button

by FreeCsStyles Dev's

AnimatedPlayful
🌐🎨⚛️💚🅰️🔥☁️
#bubble#pop#iridescent#playful#float#ring#celebrate

Embed this component

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

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

Implementation code

Copy the HTML and CSS for Bubble Pop 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="btn-bubble"><span>🫧 BUBBLE</span></button>
CSS
.btn-bubble{width:160px;height:50px;border-radius:12px;border:none;background:linear-gradient(135deg,#7c3aed,#db2777);color:#fff;font-size:16px;font-weight:700;cursor:pointer;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;transition:all .4s;font-family:system-ui,sans-serif}.btn-bubble .bubble{position:absolute;border:1px solid rgba(255,255,255,.5);border-radius:50%;background:radial-gradient(circle at 30% 30%,rgba(255,255,255,.35),transparent);opacity:0;pointer-events:none}.btn-bubble.is-bubbling .bubble{animation:bubble-rise .9s forwards ease-out}.btn-bubble .pop-ring{position:absolute;width:20px;height:20px;border:2px solid rgba(255,255,255,.6);border-radius:50%;opacity:0;pointer-events:none}.btn-bubble.is-popped .pop-ring{animation:ring-expand .5s forwards ease-out}.btn-bubble.is-popped{background:linear-gradient(135deg,#5b21b6,#9d174d)}@keyframes bubble-rise{0%{transform:translateY(30px) scale(.3);opacity:.7}40%{transform:translateY(15px) scale(1);opacity:.9}100%{transform:translateY(-15px) scale(.4);opacity:0}}@keyframes ring-expand{0%{transform:scale(.3);opacity:.8}100%{transform:scale(2);opacity:0}}
Tailwind CSS
<button class="w-[160px] h-[50px] rounded-xl border-none bg-gradient-to-br from-purple-600 to-pink-600 text-white font-bold cursor-pointer relative flex items-center justify-center overflow-hidden transition-all duration-[400ms] font-sans"><span class="relative z-10">🫧 BUBBLE</span></button>
React
import { useState } from 'react';
export function BubblePopButton() {
  const [phase, setPhase] = useState('idle');
  const handleClick = () => {
    if (phase !== 'idle') return;
    setPhase('bubbling');
    setTimeout(() => setPhase('popped'), 1300);
    setTimeout(() => setPhase('idle'), 4000);
  };
  return (
    <button onClick={handleClick} disabled={phase !== 'idle'}
      style={{ width: 160, height: 50, borderRadius: 12, border: 'none', background: phase === 'popped' ? 'linear-gradient(135deg,#5b21b6,#9d174d)' : 'linear-gradient(135deg,#7c3aed,#db2777)', color: '#fff', fontSize: 16, fontWeight: 'bold', cursor: 'pointer', position: 'relative', display: 'flex', alignItems: 'center', justifyContent: 'center', overflow: 'hidden', fontFamily: 'system-ui,sans-serif', transition: 'all 0.4s' }}>
      <span>{phase === 'idle' ? '🫧 BUBBLE' : phase === 'bubbling' ? 'Bubbling...' : '✨ POPPED!'}</span>
    </button>
  );
}
Vue
<template>
  <button class="btn-bubble" :class="phase" @click="handleClick" :disabled="phase!=='idle'">
    <span>{{ phase==='idle' ? '🫧 BUBBLE' : phase==='bubbling' ? 'Bubbling...' : '✨ POPPED!' }}</span>
  </button>
</template>
<script setup>
import { ref } from 'vue';
const phase = ref('idle');
function handleClick() {
  if (phase.value !== 'idle') return;
  phase.value = 'bubbling';
  setTimeout(() => phase.value = 'popped', 1300);
  setTimeout(() => phase.value = 'idle', 4000);
}
</script>
Svelte
<script>
  let phase = 'idle';
  function handleClick() { if (phase !== 'idle') return; phase = 'bubbling'; setTimeout(() => phase = 'popped', 1300); setTimeout(() => phase = 'idle', 4000); }
</script>
<button class="btn-bubble" class:is-popped={phase==='popped'} on:click={handleClick} disabled={phase!=='idle'}>
  <span>{phase==='idle' ? '🫧 BUBBLE' : phase==='bubbling' ? 'Bubbling...' : '✨ POPPED!'}</span>
</button>
Angular
import { Component } from '@angular/core';
@Component({
  selector: 'app-bubble-pop-button',
  template: `<button class="btn-bubble" [class.is-bubbling]="phase==='bubbling'" [class.is-popped]="phase==='popped'" (click)="handleClick()" [disabled]="phase!=='idle'"><span>{{ phase==='idle' ? '🫧 BUBBLE' : phase==='bubbling' ? 'Bubbling...' : '✨ POPPED!' }}</span></button>`,
  styles: [`.btn-bubble{width:160px;height:50px;border-radius:12px;border:none;background:linear-gradient(135deg,#7c3aed,#db2777);color:#fff;font-size:16px;font-weight:700;cursor:pointer;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;transition:all .4s}.btn-bubble.is-popped{background:linear-gradient(135deg,#5b21b6,#9d174d)}`]
})
export class BubblePopButtonComponent { phase='idle';handleClick(){if(this.phase!=='idle')return;this.phase='bubbling';setTimeout(()=>this.phase='popped',1300);setTimeout(()=>this.phase='idle',4000);}}
LWC — HTML template
<template><button class="btn-bubble" onclick={handleClick} disabled={disabled}><span>{label}</span></button></template>
LWC — JavaScript
import { LightningElement } from 'lwc';
export default class BubblePopButton extends LightningElement {
  phase = 'idle';
  get disabled() { return this.phase !== 'idle'; }
  get label() { return this.phase==='idle'?'🫧 BUBBLE':this.phase==='bubbling'?'Bubbling...':'✨ POPPED!'; }
  handleClick() { if(this.phase!=='idle')return;this.phase='bubbling';setTimeout(()=>this.phase='popped',1300);setTimeout(()=>this.phase='idle',4000); }
}
LWC — CSS
.btn-bubble{width:160px;height:50px;border-radius:12px;border:none;background:linear-gradient(135deg,#7c3aed,#db2777);color:#fff;font-size:16px;font-weight:700;cursor:pointer;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;transition:all .4s}.btn-bubble.is-popped{background:linear-gradient(135deg,#5b21b6,#9d174d)}
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 Bubble Pop Button fits

  • Kids Apps
  • Games
  • Social Media
  • Fun Actions
  • Celebrations

Interaction states & animations

  • Bubble Float
  • Pop Ring
  • Iridescent
  • Rise

Topics

  • #bubble
  • #pop
  • #iridescent
  • #playful
  • #float
  • #ring
  • #celebrate

Accessibility notes

Bubble animation is decorative. Button should always have visible text. Respect reduced-motion preference.

Browser support

  • All modern browsers