Aurora Glass Button
Blend of glassmorphism with animated aurora lighting and floating reflections
Embed this component
Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/aurora-glass-button.
<iframe src="/embed/aurora-glass-button" sandbox="allow-scripts" loading="lazy" title="Aurora Glass Button" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>Implementation code
Copy the HTML and CSS for Aurora Glass 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="aurora-glass-btn">Aurora</button>CSS
.aurora-glass-btn {
padding: 1rem 2rem;
border-radius: 0.75rem;
font-weight: 600;
backdrop-filter: blur(24px);
-webkit-backdrop-filter: blur(24px);
background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(236,72,153,0.1), rgba(6,182,212,0.1));
color: #e2e8f0;
border: 1px solid rgba(255,255,255,0.12);
cursor: pointer;
animation: aurora-shift 8s ease-in-out infinite;
transition: all 0.3s ease;
box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
}
.aurora-glass-btn:hover { transform: scale(1.03); box-shadow: 0 12px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.12); }
.aurora-glass-btn:active { transform: scale(0.96); }
@keyframes aurora-shift { 0% { background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(236,72,153,0.1), rgba(6,182,212,0.1)); } 33% { background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(99,102,241,0.1), rgba(236,72,153,0.1)); } 66% { background: linear-gradient(135deg, rgba(236,72,153,0.15), rgba(6,182,212,0.1), rgba(99,102,241,0.1)); } }Tailwind CSS
<button class="px-8 py-4 rounded-xl font-semibold backdrop-blur-2xl bg-gradient-to-br from-indigo-500/15 via-pink-500/10 to-cyan-500/10 text-slate-200 border border-white/12 shadow-[0_8px_32px_rgba(0,0,0,0.3),inset_0_1px_0_rgba(255,255,255,0.08)] hover:scale-103 active:scale-96 transition-all">
Aurora
</button>React
function AuroraGlassButton() {
return (
<motion.button
className="px-8 py-4 rounded-xl font-semibold backdrop-blur-2xl"
style={{ background: 'linear-gradient(135deg, rgba(99,102,241,0.15), rgba(236,72,153,0.1), rgba(6,182,212,0.1))', color: '#e2e8f0', border: '1px solid rgba(255,255,255,0.12)', cursor: 'pointer', boxShadow: '0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08)' }}
animate={{ background: ['linear-gradient(135deg, rgba(99,102,241,0.15), rgba(236,72,153,0.1), rgba(6,182,212,0.1))', 'linear-gradient(135deg, rgba(6,182,212,0.15), rgba(99,102,241,0.1), rgba(236,72,153,0.1))', 'linear-gradient(135deg, rgba(236,72,153,0.15), rgba(6,182,212,0.1), rgba(99,102,241,0.1))', 'linear-gradient(135deg, rgba(99,102,241,0.15), rgba(236,72,153,0.1), rgba(6,182,212,0.1))'] }}
transition={{ background: { duration: 8, repeat: Infinity, ease: 'easeInOut' } }}
whileHover={{ scale: 1.03, boxShadow: '0 12px 40px rgba(0,0,0,0.4)' }}
whileTap={{ scale: 0.96 }}
>
Aurora
</motion.button>
);
}LWC — HTML template
<template><button class="aurora-glass-btn" onclick={handleClick}><slot>Aurora</slot></button></template>LWC — JavaScript
import { LightningElement, api } from 'lwc';
export default class AuroraGlassButton extends LightningElement {
@api label = 'Aurora';
handleClick() { this.dispatchEvent(new CustomEvent('buttonclick', { bubbles: true, composed: true })); }
}LWC — CSS
.aurora-glass-btn { padding: 1rem 2rem; border-radius: 0.75rem; font-weight: 600; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(236,72,153,0.1), rgba(6,182,212,0.1)); color: #e2e8f0; border: 1px solid rgba(255,255,255,0.12); cursor: pointer; animation: aurora-shift 8s ease-in-out infinite; transition: all 0.3s ease; box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08); }
.aurora-glass-btn:hover { transform: scale(1.03); box-shadow: 0 12px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.12); }
.aurora-glass-btn:active { transform: scale(0.96); }
@keyframes aurora-shift { 0% { background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(236,72,153,0.1), rgba(6,182,212,0.1)); } 33% { background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(99,102,241,0.1), rgba(236,72,153,0.1)); } 66% { background: linear-gradient(135deg, rgba(236,72,153,0.15), rgba(6,182,212,0.1), rgba(99,102,241,0.1)); } }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 Aurora Glass Button fits
- Premium SaaS
- AI Apps
- Dashboards
- Modern UI
Interaction states & animations
- Aurora Flow
- Floating
- Glow Breathing
- Reflection Sweep
Topics
- #glass
- #aurora
- #frosted
- #blur
- #glow
- #premium
- #sass
Accessibility notes
Frosted glass may reduce contrast — ensure text meets 4.5:1 ratio. Backdrop-blur fallback for Firefox.
Browser support
- Chrome 76+
- Firefox 103+
- Safari 9+
- Edge 79+