Fire Effect Button
Button with animated fire/flame effect
Embed this component
Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/fire-button.
<iframe src="/embed/fire-button" sandbox="allow-scripts" loading="lazy" title="Fire Effect Button" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>Implementation code
Copy the HTML and CSS for Fire Effect 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="fire-button">🔥 FIRE</button>CSS
.fire-button {
position: relative;
padding: 1rem 2rem;
background: linear-gradient(to bottom, #f97316, #dc2626);
color: white;
font-weight: bold;
border: none;
cursor: pointer;
border-radius: 0.5rem 0.5rem 2rem 2rem;
overflow: hidden;
transition: all 0.3s ease;
}
.fire-button:hover {
transform: scale(1.05);
box-shadow: 0 10px 40px rgba(239, 68, 68, 0.6);
}
.fire-button::before {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 2rem;
background: linear-gradient(to top, #ef4444, transparent);
animation: fire-flicker 0.2s ease-in-out infinite alternate;
}
@keyframes fire-flicker {
0% { opacity: 0.8; height: 2rem; }
100% { opacity: 1; height: 2.5rem; }
}LWC — HTML template
<template>
<button class="fire-button" onclick={handleClick}>
<span>🔥 <slot>FIRE</slot></span>
</button>
</template>LWC — JavaScript
import { LightningElement, api } from 'lwc';
export default class FireButton extends LightningElement {
@api label = 'FIRE';
handleClick() {
this.dispatchEvent(new CustomEvent('buttonclick', {
bubbles: true,
composed: true
}));
}
}LWC — CSS
.fire-button {
position: relative;
padding: 1rem 2rem;
background: linear-gradient(to bottom, #f97316, #dc2626);
color: white;
font-weight: bold;
border: none;
cursor: pointer;
border-radius: 0.5rem 0.5rem 2rem 2rem;
overflow: hidden;
transition: all 0.3s ease;
}
.fire-button:hover {
transform: scale(1.05);
box-shadow: 0 10px 40px rgba(239, 68, 68, 0.6);
}
.fire-button::before {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 2rem;
background: linear-gradient(to top, #ef4444, transparent);
animation: fire-flicker 0.2s ease-in-out infinite alternate;
}
@keyframes fire-flicker {
0% { opacity: 0.8; height: 2rem; }
100% { opacity: 1; height: 2.5rem; }
}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 Fire Effect Button fits
- Gaming
- Hot Deals
- Urgency CTAs
- Entertainment
Interaction states & animations
- Fire
- Glow
- Hover
Topics
- #fire
- #flame
- #hot
- #gaming
- #urgent
- #effects
Accessibility notes
Provide reduced motion alternative. Ensure text remains readable.
Browser support
- All modern browsers