Northern Lights Button
Aurora waves travel across the button with smooth color shifting, floating mist, and soft glow
Embed this component
Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/northern-lights-button.
<iframe src="/embed/northern-lights-button" sandbox="allow-scripts" loading="lazy" title="Northern Lights Button" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>Implementation code
Copy the HTML and CSS for Northern Lights 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-btn"><span>✦ AURORA</span></button>CSS
.aurora-btn {
position: relative;
padding: 1rem 2rem;
border-radius: 0.75rem;
font-weight: 600;
background: linear-gradient(135deg, #0f172a, #1e1b4b, #0f172a);
background-size: 200% 200%;
color: #67e8f9;
border: 1px solid rgba(103,232,249,0.15);
cursor: pointer;
overflow: hidden;
animation: aurora-wave 6s ease-in-out infinite;
transition: all 0.3s ease;
}
.aurora-btn:hover { transform: scale(1.04); box-shadow: 0 0 30px rgba(103,232,249,0.2); }
.aurora-btn:active { transform: scale(0.96); }
.aurora-btn::before {
content: ''; position: absolute; inset: 0; border-radius: 0.75rem;
background: linear-gradient(90deg, transparent, rgba(103,232,249,0.08), transparent);
animation: aurora-sweep 5s linear infinite;
pointer-events: none;
}
@keyframes aurora-wave { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes aurora-sweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }Tailwind CSS
<button class="px-8 py-4 rounded-xl font-semibold bg-gradient-to-br from-slate-900 via-indigo-950 to-slate-900 bg-[length:200%_200%] text-cyan-300 border border-cyan-300/15 hover:scale-104 active:scale-96 transition-all overflow-hidden relative" style="animation: aurora-wave 6s ease-in-out infinite;">
<span class="relative z-10">✦ AURORA</span>
</button>React
function AuroraButton() {
return (
<motion.button
className="px-8 py-4 rounded-xl font-semibold relative overflow-hidden"
style={{ background: 'linear-gradient(135deg, #0f172a, #1e1b4b, #0f172a)', backgroundSize: '200% 200%', color: '#67e8f9', border: '1px solid rgba(103,232,249,0.15)', cursor: 'pointer' }}
animate={{ backgroundPosition: ['0% 50%', '100% 50%', '0% 50%'] }}
transition={{ backgroundPosition: { duration: 6, repeat: Infinity, ease: 'easeInOut' } }}
whileHover={{ scale: 1.04, boxShadow: '0 0 30px rgba(103,232,249,0.2)' }}
whileTap={{ scale: 0.96 }}
>
<span style={{ position: 'relative', zIndex: 10 }}>✦ AURORA</span>
</motion.button>
);
}LWC — HTML template
<template><button class="aurora-btn" onclick={handleClick}><span style="position:relative;z-index:10"><slot>✦ AURORA</slot></span></button></template>LWC — JavaScript
import { LightningElement, api } from 'lwc';
export default class AuroraButton extends LightningElement {
@api label = '✦ AURORA';
handleClick() { this.dispatchEvent(new CustomEvent('buttonclick', { bubbles: true, composed: true })); }
}LWC — CSS
.aurora-btn { position: relative; padding: 1rem 2rem; border-radius: 0.75rem; font-weight: 600; background: linear-gradient(135deg, #0f172a, #1e1b4b, #0f172a); background-size: 200% 200%; color: #67e8f9; border: 1px solid rgba(103,232,249,0.15); cursor: pointer; overflow: hidden; animation: aurora-wave 6s ease-in-out infinite; transition: all 0.3s ease; }
.aurora-btn:hover { transform: scale(1.04); box-shadow: 0 0 30px rgba(103,232,249,0.2); }
.aurora-btn:active { transform: scale(0.96); }
.aurora-btn::before { content: ''; position: absolute; inset: 0; border-radius: 0.75rem; background: linear-gradient(90deg, transparent, rgba(103,232,249,0.08), transparent); animation: aurora-sweep 5s linear infinite; pointer-events: none; }
@keyframes aurora-wave { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes aurora-sweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }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 Northern Lights Button fits
- Luxury
- AI
- Travel
- Nature
- Premium Brands
Interaction states & animations
- Aurora Wave
- Color Shifting
- Glow Breathing
- Mist Drift
Topics
- #aurora
- #northern lights
- #wave
- #color shift
- #glow
- #nature
- #ethereal
Accessibility notes
Color-shifting aurora is decorative. Provide solid-color fallback. Respect reduced-motion preference.
Browser support
- All modern browsers