Skip to content

Smoke Dissolve Button

A dark gray button that dissipates into wispy smoke particles that drift upward like chimney smoke

Smoke Dissolve Button

by FreeCsStyles Dev's

AnimatedSmoke Dissolve
🌐🎨⚛️💚🅰️🔥☁️
#smoke#dissolve#fade#particle#wisp#dark#atmosphere

Embed this component

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

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

Implementation code

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

HTML
<div class="smoke-goo-wrapper">
  <div class="smoke-goo-bg"></div>
  <div class="smoke-particle p1"></div>
  <div class="smoke-particle p2"></div>
  <div class="smoke-particle p3"></div>
  <div class="smoke-goo-text">Smoke</div>
</div>
CSS
.smoke-goo-wrapper { position: relative; width: 200px; height: 65px; display: inline-block; }
.smoke-goo-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #64748b, #334155); border-radius: 8px; cursor: pointer; pointer-events: auto; z-index: 2; transition: opacity 0.8s ease, transform 0.8s ease; }
.smoke-goo-wrapper:hover .smoke-goo-bg { opacity: 0.6; transform: scale(0.95); }
.smoke-particle { position: absolute; top: -10px; border-radius: 50%; filter: blur(6px); opacity: 0; }
.smoke-goo-wrapper:hover .smoke-particle { opacity: 1; }
.smoke-particle.p1 { width: 40px; height: 40px; left: 10%; background: rgba(148,163,184,0.6); animation: smoke-rise 3s infinite ease-out 0s; }
.smoke-particle.p2 { width: 50px; height: 50px; left: 40%; background: rgba(203,213,225,0.5); animation: smoke-rise 4s infinite ease-out 0.8s; }
.smoke-particle.p3 { width: 35px; height: 35px; left: 70%; background: rgba(148,163,184,0.6); animation: smoke-rise 3.5s infinite ease-out 0.4s; }
.smoke-goo-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #f1f5f9; font-size: 18px; font-weight: 800; letter-spacing: 2px; z-index: 5; cursor: pointer; user-select: none; text-transform: uppercase; text-shadow: 0 2px 4px rgba(0,0,0,0.6); }
@keyframes smoke-rise { 0% { transform: translateY(0) scale(0.5); opacity: 0.8; } 50% { opacity: 0.6; } 100% { transform: translateY(-90px) scale(2.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .smoke-particle { animation: none !important; opacity: 0 !important; } }
Tailwind CSS
<div class="relative w-[200px] h-[65px] inline-block group" role="button">
  <div class="absolute inset-0 bg-gradient-to-br from-slate-500 to-slate-700 rounded-lg cursor-pointer pointer-events-auto z-[2] group-hover:opacity-60 group-hover:scale-95 transition-all duration-800"></div>
  <div class="absolute top-[-10px] left-[10%] w-10 h-10 rounded-full bg-slate-400/60 blur-[6px] opacity-0 group-hover:opacity-100 z-[3]" style="animation: smoke-rise-tw 3s infinite ease-out 0s;" />
  <div class="absolute top-[-10px] left-[40%] w-[50px] h-[50px] rounded-full bg-slate-300/50 blur-[6px] opacity-0 group-hover:opacity-100 z-[3]" style="animation: smoke-rise-tw 4s infinite ease-out 0.8s;" />
  <div class="absolute top-[-10px] left-[70%] w-[35px] h-[35px] rounded-full bg-slate-400/60 blur-[6px] opacity-0 group-hover:opacity-100 z-[3]" style="animation: smoke-rise-tw 3.5s infinite ease-out 0.4s;" />
  <div class="absolute inset-0 flex items-center justify-center text-slate-100 text-lg font-bold tracking-wider z-[5] cursor-pointer select-none uppercase active:scale-[0.97]" style="text-shadow: 0 2px 4px rgba(0,0,0,0.6);">Smoke</div>
</div>
React
import React from 'react';
import { motion } from 'framer-motion';

function SmokeDissolveButton() {
  const gooId = 'smoke-gooey-react';
  const [hovered, setHovered] = React.useState(false);
  const particles = [
    { left: '25%', w: 20, h: 20, yEnd: -70, xEnd: 15, delay: 0, dur: 3 },
    { left: '50%', w: 14, h: 14, yEnd: -60, xEnd: -10, delay: 0.8, dur: 3.5 },
    { left: '75%', w: 18, h: 18, yEnd: -75, xEnd: 8, delay: 1.6, dur: 2.8 },
  ];
  return (
    <div style={{ position: 'relative', width: 200, height: 65, display: 'inline-block' }}
      onMouseEnter={() => setHovered(true)} onMouseLeave={() => setHovered(false)}>
      <svg style={{ position: 'absolute', width: 0, height: 0 }} aria-hidden="true">
        <defs><filter id={gooId}>
          <feGaussianBlur in="SourceGraphic" stdDeviation="6" result="blur" />
          <feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 14 -5" result="goo" />
          <feBlend in="SourceGraphic" in2="goo" />
        </filter></defs>
      </svg>
      <div style={{ position: 'absolute', inset: 0, filter: `url(#${gooId})`, zIndex: 1, pointerEvents: 'none' }}>
        <motion.div style={{ position: 'absolute', inset: 0, background: 'linear-gradient(135deg, #334155, #475569)', borderRadius: 8, cursor: 'pointer', pointerEvents: 'auto' }}
          animate={{ opacity: hovered ? 0.6 : 1, scale: hovered ? 0.95 : 1 }} transition={{ duration: 0.8, ease: 'easeOut' }} />
        {particles.map((p, i) => (
          <motion.div key={i} style={{ position: 'absolute', bottom: 5, left: p.left, width: p.w, height: p.h, borderRadius: '50%', background: 'rgba(255,255,255,0.2)', filter: 'blur(1px)' }}
            animate={hovered ? { y: [0, p.yEnd * 0.4, p.yEnd * 0.7, p.yEnd], x: [0, p.xEnd * 0.5, p.xEnd * 0.8, p.xEnd], scale: [0.3, 0.7, 0.5, 0], opacity: [0, 0.6, 0.3, 0] } : { y: 0, x: 0, scale: 0.3, opacity: 0 }}
            transition={hovered ? { duration: p.dur, repeat: Infinity, ease: 'easeOut', delay: p.delay } : { duration: 0.3 }} />
        ))}
      </div>
      <motion.div style={{ position: 'absolute', inset: 0, display: 'flex', alignItems: 'center', justifyContent: 'center', color: '#f1f5f9', fontSize: 18, fontWeight: 700, letterSpacing: 1, zIndex: 2, cursor: 'pointer', userSelect: 'none' }} whileTap={{ scale: 0.97 }}>💨 SMOKE</motion.div>
    </div>
  );
}
Vue
<template>
  <div class="smoke-goo-wrapper" @mouseenter="hovered = true" @mouseleave="hovered = false">
    <svg style="position:absolute;width:0;height:0" aria-hidden="true">
      <defs><filter id="smoke-gooey-vue">
        <feGaussianBlur in="SourceGraphic" stdDeviation="6" result="blur" />
        <feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 14 -5" result="goo" />
        <feBlend in="SourceGraphic" in2="goo" />
      </filter></defs>
    </svg>
    <div class="smoke-goo-container">
      <div class="smoke-goo-bg" :class="{ faded: hovered }"></div>
      <div class="smoke-particle p1" :class="{ active: hovered }"></div>
      <div class="smoke-particle p2" :class="{ active: hovered }"></div>
      <div class="smoke-particle p3" :class="{ active: hovered }"></div>
    </div>
    <div class="smoke-goo-text">💨 SMOKE</div>
  </div>
</template>
<script setup>
import { ref } from 'vue';
const hovered = ref(false);
</script>
<style scoped>
.smoke-goo-wrapper { position: relative; width: 200px; height: 65px; display: inline-block; }
.smoke-goo-container { position: absolute; inset: 0; filter: url(#smoke-gooey-vue); z-index: 1; pointer-events: none; }
.smoke-goo-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #334155, #475569); border-radius: 8px; cursor: pointer; pointer-events: auto; transition: opacity 0.8s ease, transform 0.8s ease; }
.smoke-goo-bg.faded { opacity: 0.6; transform: scale(0.95); }
.smoke-particle { position: absolute; bottom: 5px; border-radius: 50%; filter: blur(1px); opacity: 0; transition: opacity 0.3s; }
.smoke-particle.active { opacity: 1; }
.p1 { width: 20px; height: 20px; left: 25%; background: rgba(255,255,255,0.25); animation: smoke-rise-1 3s ease-out infinite 0s; }
.p2 { width: 14px; height: 14px; left: 50%; background: rgba(255,255,255,0.12); animation: smoke-rise-2 3.5s ease-out infinite 0.8s; }
.p3 { width: 18px; height: 18px; left: 75%; background: rgba(255,255,255,0.25); animation: smoke-rise-3 2.8s ease-out infinite 1.6s; }
.smoke-goo-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #f1f5f9; font-size: 18px; font-weight: 700; letter-spacing: 1px; z-index: 2; cursor: pointer; user-select: none; }
@keyframes smoke-rise-1 { 0% { transform: translate(0, 0) scale(0.3); opacity: 0; } 30% { opacity: 0.6; } 70% { transform: translate(8px, -50px) scale(0.5); opacity: 0.3; } 100% { transform: translate(15px, -70px) scale(0); opacity: 0; } }
@keyframes smoke-rise-2 { 0% { transform: translate(0, 0) scale(0.3); opacity: 0; } 30% { opacity: 0.5; } 70% { transform: translate(-5px, -42px) scale(0.5); opacity: 0.2; } 100% { transform: translate(-10px, -60px) scale(0); opacity: 0; } }
@keyframes smoke-rise-3 { 0% { transform: translate(0, 0) scale(0.3); opacity: 0; } 30% { opacity: 0.6; } 70% { transform: translate(4px, -52px) scale(0.5); opacity: 0.3; } 100% { transform: translate(8px, -75px) scale(0); opacity: 0; } }
</style>
Svelte
<script>
  let hovered = false;
</script>
<div class="smoke-goo-wrapper" on:mouseenter={() => hovered = true} on:mouseleave={() => hovered = false}>
  <svg style="position:absolute;width:0;height:0" aria-hidden="true">
    <defs><filter id="smoke-gooey-sv">
      <feGaussianBlur in="SourceGraphic" stdDeviation="6" result="blur" />
      <feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 14 -5" result="goo" />
      <feBlend in="SourceGraphic" in2="goo" />
    </filter></defs>
  </svg>
  <div class="smoke-goo-container">
    <div class="smoke-goo-bg" class:opacity-60={hovered} class:scale-95={hovered}></div>
    <div class="smoke-particle p1" class:active={hovered}></div>
    <div class="smoke-particle p2" class:active={hovered}></div>
    <div class="smoke-particle p3" class:active={hovered}></div>
  </div>
  <div class="smoke-goo-text">💨 SMOKE</div>
</div>
<style>
.smoke-goo-wrapper { position: relative; width: 200px; height: 65px; display: inline-block; }
.smoke-goo-container { position: absolute; inset: 0; filter: url(#smoke-gooey-sv); z-index: 1; pointer-events: none; }
.smoke-goo-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #334155, #475569); border-radius: 8px; cursor: pointer; pointer-events: auto; transition: opacity 0.8s ease, transform 0.8s ease; }
.smoke-particle { position: absolute; bottom: 5px; border-radius: 50%; filter: blur(1px); opacity: 0; transition: opacity 0.3s; }
.smoke-particle.active { opacity: 1; }
.p1 { width: 20px; height: 20px; left: 25%; background: rgba(255,255,255,0.25); animation: smoke-rise-1 3s ease-out infinite 0s; }
.p2 { width: 14px; height: 14px; left: 50%; background: rgba(255,255,255,0.12); animation: smoke-rise-2 3.5s ease-out infinite 0.8s; }
.p3 { width: 18px; height: 18px; left: 75%; background: rgba(255,255,255,0.25); animation: smoke-rise-3 2.8s ease-out infinite 1.6s; }
.smoke-goo-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #f1f5f9; font-size: 18px; font-weight: 700; letter-spacing: 1px; z-index: 2; cursor: pointer; user-select: none; }
@keyframes smoke-rise-1 { 0% { transform: translate(0, 0) scale(0.3); opacity: 0; } 30% { opacity: 0.6; } 70% { transform: translate(8px, -50px) scale(0.5); opacity: 0.3; } 100% { transform: translate(15px, -70px) scale(0); opacity: 0; } }
@keyframes smoke-rise-2 { 0% { transform: translate(0, 0) scale(0.3); opacity: 0; } 30% { opacity: 0.5; } 70% { transform: translate(-5px, -42px) scale(0.5); opacity: 0.2; } 100% { transform: translate(-10px, -60px) scale(0); opacity: 0; } }
@keyframes smoke-rise-3 { 0% { transform: translate(0, 0) scale(0.3); opacity: 0; } 30% { opacity: 0.6; } 70% { transform: translate(4px, -52px) scale(0.5); opacity: 0.3; } 100% { transform: translate(8px, -75px) scale(0); opacity: 0; } }
</style>
Angular
import { Component } from '@angular/core';
@Component({
  selector: 'app-smoke-dissolve-button',
  template: `<div class="smoke-goo-wrapper">
    <svg style="position:absolute;width:0;height:0" aria-hidden="true">
      <defs><filter id="smoke-gooey-ng">
        <feGaussianBlur in="SourceGraphic" stdDeviation="6" result="blur" />
        <feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 14 -5" result="goo" />
        <feBlend in="SourceGraphic" in2="goo" />
      </filter></defs>
    </svg>
    <div class="smoke-goo-container">
      <div class="smoke-goo-bg"></div>
      <div class="smoke-particle p1"></div>
      <div class="smoke-particle p2"></div>
      <div class="smoke-particle p3"></div>
    </div>
    <div class="smoke-goo-text" (click)="handleClick()">💨 SMOKE</div>
  </div>`,
  styles: [`.smoke-goo-wrapper { position: relative; width: 200px; height: 65px; display: inline-block; }
.smoke-goo-container { position: absolute; inset: 0; filter: url(#smoke-gooey-ng); z-index: 1; pointer-events: none; }
.smoke-goo-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #334155, #475569); border-radius: 8px; cursor: pointer; pointer-events: auto; transition: opacity 0.8s ease, transform 0.8s ease; }
.smoke-goo-wrapper:hover .smoke-goo-bg { opacity: 0.6; transform: scale(0.95); }
.smoke-particle { position: absolute; bottom: 5px; border-radius: 50%; filter: blur(1px); opacity: 0; }
.smoke-goo-wrapper:hover .smoke-particle { opacity: 1; }
.p1 { width: 20px; height: 20px; left: 25%; background: rgba(255,255,255,0.25); animation: smoke-rise-1 3s ease-out infinite 0s; }
.p2 { width: 14px; height: 14px; left: 50%; background: rgba(255,255,255,0.12); animation: smoke-rise-2 3.5s ease-out infinite 0.8s; }
.p3 { width: 18px; height: 18px; left: 75%; background: rgba(255,255,255,0.25); animation: smoke-rise-3 2.8s ease-out infinite 1.6s; }
.smoke-goo-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #f1f5f9; font-size: 18px; font-weight: 700; letter-spacing: 1px; z-index: 2; cursor: pointer; user-select: none; }
@keyframes smoke-rise-1 { 0% { transform: translate(0, 0) scale(0.3); opacity: 0; } 30% { opacity: 0.6; } 70% { transform: translate(8px, -50px) scale(0.5); opacity: 0.3; } 100% { transform: translate(15px, -70px) scale(0); opacity: 0; } }
@keyframes smoke-rise-2 { 0% { transform: translate(0, 0) scale(0.3); opacity: 0; } 30% { opacity: 0.5; } 70% { transform: translate(-5px, -42px) scale(0.5); opacity: 0.2; } 100% { transform: translate(-10px, -60px) scale(0); opacity: 0; } }
@keyframes smoke-rise-3 { 0% { transform: translate(0, 0) scale(0.3); opacity: 0; } 30% { opacity: 0.6; } 70% { transform: translate(4px, -52px) scale(0.5); opacity: 0.3; } 100% { transform: translate(8px, -75px) scale(0); opacity: 0; } }`]
})
export class SmokeDissolveButtonComponent { handleClick() {} }
LWC — HTML template
<template>
  <div class="smoke-goo-wrapper">
    <svg style="position:absolute;width:0;height:0" aria-hidden="true">
      <defs>
        <filter id="smoke-gooey-lwc">
          <feGaussianBlur in="SourceGraphic" stdDeviation="6" result="blur" />
          <feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 14 -5" result="goo" />
          <feBlend in="SourceGraphic" in2="goo" />
        </filter>
      </defs>
    </svg>
    <div class="smoke-goo-container">
      <div class="smoke-goo-bg"></div>
      <div class="smoke-particle p1"></div>
      <div class="smoke-particle p2"></div>
      <div class="smoke-particle p3"></div>
    </div>
    <div class="smoke-goo-text" onclick={handleClick}>💨 SMOKE</div>
  </div>
</template>
LWC — JavaScript
import { LightningElement } from 'lwc';
export default class SmokeDissolveButton extends LightningElement {
  handleClick() { this.dispatchEvent(new CustomEvent('buttonclick', { bubbles: true, composed: true })); }
}
LWC — CSS
.smoke-goo-wrapper { position: relative; width: 200px; height: 65px; display: inline-block; }
.smoke-goo-container { position: absolute; inset: 0; filter: url(#smoke-gooey-lwc); z-index: 1; pointer-events: none; }
.smoke-goo-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #334155, #475569); border-radius: 8px; cursor: pointer; pointer-events: auto; transition: opacity 0.8s ease, transform 0.8s ease; }
.smoke-goo-wrapper:hover .smoke-goo-bg { opacity: 0.6; transform: scale(0.95); }
.smoke-particle { position: absolute; bottom: 5px; border-radius: 50%; filter: blur(1px); opacity: 0; }
.smoke-goo-wrapper:hover .smoke-particle { opacity: 1; }
.p1 { width: 20px; height: 20px; left: 25%; background: rgba(255,255,255,0.25); animation: smoke-rise-1 3s ease-out infinite 0s; }
.p2 { width: 14px; height: 14px; left: 50%; background: rgba(255,255,255,0.12); animation: smoke-rise-2 3.5s ease-out infinite 0.8s; }
.p3 { width: 18px; height: 18px; left: 75%; background: rgba(255,255,255,0.25); animation: smoke-rise-3 2.8s ease-out infinite 1.6s; }
.smoke-goo-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #f1f5f9; font-size: 18px; font-weight: 700; letter-spacing: 1px; z-index: 2; cursor: pointer; user-select: none; }
@keyframes smoke-rise-1 { 0% { transform: translate(0, 0) scale(0.3); opacity: 0; } 30% { opacity: 0.6; } 70% { transform: translate(8px, -50px) scale(0.5); opacity: 0.3; } 100% { transform: translate(15px, -70px) scale(0); opacity: 0; } }
@keyframes smoke-rise-2 { 0% { transform: translate(0, 0) scale(0.3); opacity: 0; } 30% { opacity: 0.5; } 70% { transform: translate(-5px, -42px) scale(0.5); opacity: 0.2; } 100% { transform: translate(-10px, -60px) scale(0); opacity: 0; } }
@keyframes smoke-rise-3 { 0% { transform: translate(0, 0) scale(0.3); opacity: 0; } 30% { opacity: 0.6; } 70% { transform: translate(4px, -52px) scale(0.5); opacity: 0.3; } 100% { transform: translate(8px, -75px) scale(0); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .smoke-particle { animation: none !important; opacity: 0 !important; } }
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 Smoke Dissolve Button fits

  • Mystery
  • Dark Themes
  • Spooky
  • Atmospheric
  • Industrial

Interaction states & animations

  • Smoke Particle
  • Dissolve
  • Rise
  • Wispy Float

Topics

  • #smoke
  • #dissolve
  • #fade
  • #particle
  • #wisp
  • #dark
  • #atmosphere

Accessibility notes

Pure decorative animation. The button remains fully clickable. Respect prefers-reduced-motion — disable all dissolve animation.

Browser support

  • All modern browsers