Skip to content

Phoenix Rebirth

Restart button with burning, ash remains, phoenix rising, and new button appearing animation

Phoenix Rebirth

by FreeCsStyles Dev's

AnimatedStorybook
🌐🎨⚛️💚🅰️🔥☁️
#phoenix#rebirth#fire#restart#mythical

Embed this component

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

<iframe src="/embed/phoenix-rebirth" sandbox="allow-scripts" loading="lazy" title="Phoenix Rebirth" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>

Implementation code

Copy the HTML and CSS for Phoenix Rebirth, 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-phoenix"><span class="icon">🔄</span><span class="text">Restart</span><div class="flames"><span class="flame flame-1"></span><span class="flame flame-2"></span><span class="flame flame-3"></span></div><div class="ashes"></div></button>
CSS
.btn-phoenix{width:180px;height:60px;border-radius:12px;border:none;background:linear-gradient(135deg,#dc2626,#7f1d1d);color:#fff;font-size:16px;font-weight:700;cursor:pointer;position:relative;display:flex;align-items:center;justify-content:center;gap:8px;overflow:hidden;transition:all .4s;font-family:system-ui,sans-serif;z-index:1}.btn-phoenix .icon,.btn-phoenix .text{position:relative;z-index:2;transition:all .3s}.btn-phoenix .flames{position:absolute;bottom:0;left:0;right:0;height:0;z-index:3}.btn-phoenix .flame{position:absolute;bottom:0;width:20px;height:0;background:linear-gradient(0deg,#f97316,#ef4444);border-radius:50% 50% 20% 20%;opacity:0}.btn-phoenix .flame-1{left:20%}.btn-phoenix .flame-2{left:45%}.btn-phoenix .flame-3{right:20%}.btn-phoenix .ashes{position:absolute;inset:0;background:radial-gradient(circle at center,#525252,transparent);opacity:0;z-index:4}.btn-phoenix.is-burning .flames{height:100%}.btn-phoenix.is-burning .flame{animation:flame-rise .8s ease-out forwards}.btn-phoenix.is-burning .flame-1{animation-delay:0s}.btn-phoenix.is-burning .flame-2{animation-delay:.1s}.btn-phoenix.is-burning .flame-3{animation-delay:.2s}.btn-phoenix.is-burning .icon{animation:burn-spin .5s linear infinite}.btn-phoenix.is-burning .text{opacity:0}.btn-phoenix.is-ash{background:linear-gradient(135deg,#52525b,#27272a);box-shadow:0 0 20px rgba(82,82,91,.5)}.btn-phoenix.is-ash .ashes{opacity:1}.btn-phoenix.is-rising{background:linear-gradient(135deg,#f97316,#dc2626);box-shadow:0 0 40px rgba(249,115,22,.6),0 0 80px rgba(220,38,38,.4)}.btn-phoenix.is-rising .icon{animation:phoenix-rise 1s ease-out forwards}.btn-phoenix.is-rising .text{opacity:1;animation:text-reveal .5s ease-out .5s forwards}.btn-phoenix.is-reborn{background:linear-gradient(135deg,#fbbf24,#f59e0b);border:2px solid #fcd34d;box-shadow:0 0 30px rgba(251,191,36,.5);color:#451a03}@keyframes flame-rise{0%{height:0;opacity:0}30%{opacity:1}100%{height:100%;opacity:0}}@keyframes burn-spin{0%{transform:rotate(0deg) scale(1)}50%{transform:rotate(180deg) scale(1.2)}100%{transform:rotate(360deg) scale(1)}}@keyframes phoenix-rise{0%{transform:translateY(20px) scale(0);opacity:0}50%{transform:translateY(-5px) scale(1.2);opacity:1}100%{transform:translateY(0) scale(1);opacity:1}}@keyframes text-reveal{0%{opacity:0;transform:translateY(10px)}100%{opacity:1;transform:translateY(0)}}
Tailwind CSS
<button class="relative w-[180px] h-[60px] rounded-xl bg-gradient-to-br from-red-600 to-red-900 text-white font-bold text-base flex items-center justify-center gap-2 overflow-hidden transition-all duration-300 hover:shadow-lg hover:shadow-red-500/50"><span class="relative z-10">🔄 Restart</span></button>
React
import { useState } from 'react';
export function PhoenixRebirthButton() {
  const [phase, setPhase] = useState('idle');
  const handleClick = () => {
    if (phase !== 'idle') return;
    setPhase('burning');
    setTimeout(() => setPhase('ash'), 1200);
    setTimeout(() => setPhase('rising'), 2000);
    setTimeout(() => setPhase('reborn'), 3000);
    setTimeout(() => setPhase('idle'), 5000);
  };
  const bgClass = phase === 'reborn'
    ? 'linear-gradient(135deg, #fbbf24, #f59e0b)'
    : phase === 'rising'
    ? 'linear-gradient(135deg, #f97316, #dc2626)'
    : phase === 'ash'
    ? 'linear-gradient(135deg, #52525b, #27272a)'
    : 'linear-gradient(135deg, #dc2626, #7f1d1d)';
  return (
    <button onClick={handleClick} disabled={phase !== 'idle'}
      style={{
        width: 180, height: 60, borderRadius: 12, border: phase === 'reborn' ? '2px solid #fcd34d' : 'none',
        background: bgClass,
        color: phase === 'reborn' ? '#451a03' : '#fff',
        fontSize: 16, fontWeight: 'bold', cursor: 'pointer', position: 'relative',
        display: 'flex', alignItems: 'center', justifyContent: 'center', gap: 8,
        overflow: 'hidden', fontFamily: 'system-ui,sans-serif',
        boxShadow: phase === 'rising' ? '0 0 40px rgba(249,115,22,0.6), 0 0 80px rgba(220,38,38,0.4)' : phase === 'reborn' ? '0 0 30px rgba(251,191,36,0.5)' : 'none',
        transition: 'all 0.4s'
      }}>
      <span style={{ position: 'relative', zIndex: 10 }}>
        {phase === 'idle' ? '🔄 Restart' : phase === 'reborn' ? '✨ Reborn' : phase === 'rising' ? '🦅 Rising' : phase === 'ash' ? '💀 Ash' : '🔥'}
      </span>
    </button>
  );
}
Vue
<template>
  <button class="btn-phoenix" :class="phaseClass" @click="handleClick" :disabled="phase !== 'idle'">
    <span class="icon">{{ phase === 'idle' ? '🔄' : phase === 'reborn' ? '✨' : phase === 'rising' ? '🦅' : phase === 'ash' ? '💀' : '🔥' }}</span>
    <span class="text">{{ phase === 'idle' ? 'Restart' : phase === 'reborn' ? 'Reborn' : phase === 'rising' ? 'Rising' : phase === 'ash' ? 'Ash' : '' }}</span>
    <div class="flames">
      <span class="flame flame-1"></span>
      <span class="flame flame-2"></span>
      <span class="flame flame-3"></span>
    </div>
    <div class="ashes"></div>
  </button>
</template>
<script setup>
import { ref, computed } from 'vue';
const phase = ref('idle');
const phaseClass = computed(() => `is-${phase.value}`);
function handleClick() {
  if (phase.value !== 'idle') return;
  phase.value = 'burning';
  setTimeout(() => phase.value = 'ash', 1200);
  setTimeout(() => phase.value = 'rising', 2000);
  setTimeout(() => phase.value = 'reborn', 3000);
  setTimeout(() => phase.value = 'idle', 5000);
}
</script>
Svelte
<script>
  let phase = 'idle';
  function handleClick() {
    if (phase !== 'idle') return;
    phase = 'burning';
    setTimeout(() => phase = 'ash', 1200);
    setTimeout(() => phase = 'rising', 2000);
    setTimeout(() => phase = 'reborn', 3000);
    setTimeout(() => phase = 'idle', 5000);
  }
</script>
<button class="btn-phoenix" class:is-reborn={phase==='reborn'} on:click={handleClick} disabled={phase !== 'idle'}>
  <span>{phase === 'idle' ? '🔄 Restart' : phase === 'reborn' ? '✨ Reborn' : phase === 'rising' ? '🦅 Rising' : phase === 'ash' ? '💀 Ash' : '🔥'}</span>
</button>
Angular
import { Component } from '@angular/core';
@Component({
  selector: 'app-phoenix-button',
  template: `<button class="btn-phoenix" [class.is-burning]="phase==='burning'" [class.is-ash]="phase==='ash'" [class.is-rising]="phase==='rising'" [class.is-reborn]="phase==='reborn'" (click)="handleClick()" [disabled]="phase!=='idle'"><span>{{ phase==='idle' ? '🔄 Restart' : phase==='reborn' ? '✨ Reborn' : phase==='rising' ? '🦅 Rising' : phase==='ash' ? '💀 Ash' : '🔥' }}</span></button>`,
  styles: [`.btn-phoenix{width:180px;height:60px;border-radius:12px;border:none;background:linear-gradient(135deg,#dc2626,#7f1d1d);color:#fff;font-size:16px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;overflow:hidden;transition:all .4s}.btn-phoenix.is-ash{background:linear-gradient(135deg,#52525b,#27272a)}.btn-phoenix.is-rising{box-shadow:0 0 40px rgba(249,115,22,.6),0 0 80px rgba(220,38,38,.4)}.btn-phoenix.is-reborn{background:linear-gradient(135deg,#fbbf24,#f59e0b);border:2px solid #fcd34d;color:#451a03;box-shadow:0 0 30px rgba(251,191,36,.5)}`]
})
export class PhoenixButtonComponent {
  phase = 'idle';
  handleClick() {
    if (this.phase !== 'idle') return;
    this.phase = 'burning';
    setTimeout(() => this.phase = 'ash', 1200);
    setTimeout(() => this.phase = 'rising', 2000);
    setTimeout(() => this.phase = 'reborn', 3000);
    setTimeout(() => this.phase = 'idle', 5000);
  }
}
LWC — HTML template
<template><button class="btn-phoenix" onclick={handleClick} disabled={disabled}><span>{label}</span></button></template>
LWC — JavaScript
import { LightningElement } from 'lwc';
export default class PhoenixRebirthButton extends LightningElement {
  phase = 'idle';
  get disabled() { return this.phase !== 'idle'; }
  get label() { return this.phase === 'idle' ? '🔄 Restart' : this.phase === 'reborn' ? '✨ Reborn' : this.phase === 'rising' ? '🦅 Rising' : this.phase === 'ash' ? '💀 Ash' : '🔥'; }
  handleClick() {
    if (this.phase !== 'idle') return;
    this.phase = 'burning';
    setTimeout(() => { this.phase = 'ash'; }, 1200);
    setTimeout(() => { this.phase = 'rising'; }, 2000);
    setTimeout(() => { this.phase = 'reborn'; }, 3000);
    setTimeout(() => { this.phase = 'idle'; }, 5000);
  }
}
LWC — CSS
.btn-phoenix{width:180px;height:60px;border-radius:12px;border:none;background:linear-gradient(135deg,#dc2626,#7f1d1d);color:#fff;font-size:16px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;overflow:hidden;transition:all .4s}.btn-phoenix.is-ash{background:linear-gradient(135deg,#52525b,#27272a)}.btn-phoenix.is-rising{box-shadow:0 0 40px rgba(249,115,22,.6),0 0 80px rgba(220,38,38,.4)}.btn-phoenix.is-reborn{background:linear-gradient(135deg,#fbbf24,#f59e0b);border:2px solid #fcd34d;color:#451a03;box-shadow:0 0 30px rgba(251,191,36,.5)}
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 Phoenix Rebirth fits

  • Restart Actions
  • Reset State
  • Refresh System
  • New Beginning

Interaction states & animations

  • Burn
  • Ash
  • Phoenix Rise
  • Rebirth

Topics

  • #phoenix
  • #rebirth
  • #fire
  • #restart
  • #rebirth
  • #mythical

Accessibility notes

Animation is decorative. Button text remains readable. Respect reduced-motion preference.

Browser support

  • All modern browsers