Energy Pulse Button
A button that appears to contain stored energy with pulsing borders and expanding rings
Embed this component
Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/energy-pulse-button.
<iframe src="/embed/energy-pulse-button" sandbox="allow-scripts" loading="lazy" title="Energy Pulse Button" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>Implementation code
Copy the HTML and CSS for Energy Pulse 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="energy-button"><span>⚡ ACTIVATE</span></button>CSS
.energy-button {
position: relative;
padding: 1.25rem 2.5rem;
border-radius: 0.75rem;
background: linear-gradient(135deg, #1e1b4b, #312e81);
color: #a5b4fc;
font-weight: 700;
letter-spacing: 0.05em;
border: 2px solid rgba(165,180,252,0.4);
cursor: pointer;
overflow: hidden;
animation: energy-pulse 2s ease-in-out infinite;
transition: all 0.3s ease;
}
.energy-button:hover { transform: scale(1.05); box-shadow: 0 0 40px rgba(165,180,252,0.5), inset 0 0 30px rgba(165,180,252,0.3); }
.energy-button:active { transform: scale(0.95); }
.energy-button::after {
content: ''; position: absolute; inset: -2px; border-radius: 0.75rem;
border: 2px solid rgba(165,180,252,0.3);
animation: energy-ring 2s ease-out infinite;
}
@keyframes energy-pulse { 0%,100% { box-shadow: 0 0 10px rgba(165,180,252,0.2), inset 0 0 10px rgba(165,180,252,0.1); } 50% { box-shadow: 0 0 25px rgba(165,180,252,0.4), inset 0 0 25px rgba(165,180,252,0.2); } }
@keyframes energy-ring { 0% { transform: scale(1); opacity: 0.4; } 100% { transform: scale(1.2); opacity: 0; } }Tailwind CSS
<button class="px-10 py-5 rounded-xl font-bold tracking-wider bg-gradient-to-br from-indigo-950 to-indigo-900 text-indigo-300 border-2 border-indigo-400/40 hover:scale-105 active:scale-95 transition-all relative overflow-hidden">
<span class="relative z-10">⚡ ACTIVATE</span>
<span class="absolute inset-0 rounded-xl border-2 border-indigo-400/30 pointer-events-none" style="animation: energy-ring 2s ease-out infinite;" />
</button>React
function EnergyButton() {
return (
<motion.button
className="px-10 py-5 rounded-xl font-bold tracking-wider relative overflow-hidden"
style={{ background: 'linear-gradient(135deg, #1e1b4b, #312e81)', color: '#a5b4fc', border: '2px solid rgba(165,180,252,0.4)', cursor: 'pointer' }}
animate={{ boxShadow: ['0 0 10px rgba(165,180,252,0.2), inset 0 0 10px rgba(165,180,252,0.1)', '0 0 25px rgba(165,180,252,0.4), inset 0 0 25px rgba(165,180,252,0.2)', '0 0 10px rgba(165,180,252,0.2), inset 0 0 10px rgba(165,180,252,0.1)'] }}
transition={{ boxShadow: { duration: 2, repeat: Infinity, ease: 'easeInOut' } }}
whileHover={{ scale: 1.05, boxShadow: '0 0 40px rgba(165,180,252,0.5), inset 0 0 30px rgba(165,180,252,0.3)' }}
whileTap={{ scale: 0.95 }}
>
<span style={{ position: 'relative', zIndex: 10 }}>⚡ ACTIVATE</span>
<motion.span style={{ position: 'absolute', inset: 0, borderRadius: '0.75rem', border: '2px solid rgba(165,180,252,0.3)' }}
animate={{ scale: [1, 1.15, 1], opacity: [0.4, 0, 0.4] }}
transition={{ duration: 2, repeat: Infinity, ease: 'easeOut' }}
/>
</motion.button>
);
}LWC — HTML template
<template><button class="energy-button" onclick={handleClick}><span style="position:relative;z-index:10"><slot>⚡ ACTIVATE</slot></span></button></template>LWC — JavaScript
import { LightningElement, api } from 'lwc';
export default class EnergyButton extends LightningElement {
@api label = '⚡ ACTIVATE';
handleClick() { this.dispatchEvent(new CustomEvent('buttonclick', { bubbles: true, composed: true })); }
}LWC — CSS
.energy-button { position: relative; padding: 1.25rem 2.5rem; border-radius: 0.75rem; background: linear-gradient(135deg, #1e1b4b, #312e81); color: #a5b4fc; font-weight: 700; letter-spacing: 0.05em; border: 2px solid rgba(165,180,252,0.4); cursor: pointer; overflow: hidden; animation: energy-pulse 2s ease-in-out infinite; transition: all 0.3s ease; }
.energy-button:hover { transform: scale(1.05); box-shadow: 0 0 40px rgba(165,180,252,0.5), inset 0 0 30px rgba(165,180,252,0.3); }
.energy-button:active { transform: scale(0.95); }
.energy-button::after { content: ''; position: absolute; inset: -2px; border-radius: 0.75rem; border: 2px solid rgba(165,180,252,0.3); animation: energy-ring 2s ease-out infinite; }
@keyframes energy-pulse { 0%,100% { box-shadow: 0 0 10px rgba(165,180,252,0.2), inset 0 0 10px rgba(165,180,252,0.1); } 50% { box-shadow: 0 0 25px rgba(165,180,252,0.4), inset 0 0 25px rgba(165,180,252,0.2); } }
@keyframes energy-ring { 0% { transform: scale(1); opacity: 0.4; } 100% { transform: scale(1.2); opacity: 0; } }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 Energy Pulse Button fits
- Call To Action
- Launch
- Download
- Purchase
- Upgrade
Interaction states & animations
- Pulse
- Shockwave
- Energy Ring
- Glow
Topics
- #energy
- #pulse
- #glow
- #power
- #cta
- #ring
Accessibility notes
Avoid rapid flashing that could trigger seizures. Respect prefers-reduced-motion.
Browser support
- All modern browsers