Quantum Portal Button
The button opens a tiny dimensional portal with distortion ring, energy field, space warp, and particle tunnel
Embed this component
Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/quantum-portal-button.
<iframe src="/embed/quantum-portal-button" sandbox="allow-scripts" loading="lazy" title="Quantum Portal Button" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>Implementation code
Copy the HTML and CSS for Quantum Portal 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="quantum-btn"><span>◈ PORTAL</span></button>CSS
.quantum-btn {
position: relative;
padding: 1.25rem 2.5rem;
border-radius: 0.75rem;
font-weight: 700;
letter-spacing: 0.05em;
background: linear-gradient(135deg, #0a0015, #1a0030, #2d0a4a, #0a0015);
background-size: 400% 400%;
color: #a78bfa;
border: 1px solid rgba(167,139,250,0.2);
cursor: pointer;
overflow: hidden;
animation: quantum-drift 6s linear infinite;
transition: all 0.3s ease;
}
.quantum-btn:hover { transform: scale(1.06); box-shadow: 0 0 50px rgba(167,139,250,0.3); }
.quantum-btn:active { transform: scale(0.94); }
.quantum-ring { position: absolute; inset: 0; border: 2px solid rgba(167,139,250,0.12); border-radius: 0.75rem; animation: quantum-ripple 3s ease-in-out infinite; pointer-events: none; }
.quantum-core { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(167,139,250,0.1), transparent 60%); animation: quantum-pulse 2.5s ease-in-out infinite; pointer-events: none; }
.quantum-outer { position: absolute; inset: -4px; border: 1px dashed rgba(167,139,250,0.08); border-radius: 0.75rem; animation: quantum-spin 10s linear infinite; pointer-events: none; }
@keyframes quantum-drift { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
@keyframes quantum-ripple { 0%,100% { transform: scale(0.95); opacity: 0.2; } 50% { transform: scale(1.05); opacity: 0.5; } }
@keyframes quantum-pulse { 0%,100% { transform: scale(0.8); opacity: 0.1; } 50% { transform: scale(1.2); opacity: 0.4; } }
@keyframes quantum-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }Tailwind CSS
<button class="px-10 py-5 rounded-xl font-bold tracking-wider bg-gradient-to-br from-[#0a0015] via-[#1a0030] via-[#2d0a4a] to-[#0a0015] bg-[length:400%_400%] text-violet-300 border border-violet-300/20 hover:scale-106 active:scale-94 transition-all overflow-hidden relative" style="animation: quantum-drift 6s linear infinite;">
<span class="relative z-10">◈ PORTAL</span>
</button>React
function QuantumButton() {
return (
<motion.button
className="px-10 py-5 rounded-xl font-bold tracking-wider relative overflow-hidden"
style={{ background: 'linear-gradient(135deg, #0a0015, #1a0030, #2d0a4a, #0a0015)', backgroundSize: '400% 400%', color: '#a78bfa', border: '1px solid rgba(167,139,250,0.2)', cursor: 'pointer' }}
animate={{ backgroundPosition: ['0% 50%', '100% 50%', '0% 50%'] }}
transition={{ backgroundPosition: { duration: 6, repeat: Infinity, ease: 'linear' } }}
whileHover={{ scale: 1.06, boxShadow: '0 0 50px rgba(167,139,250,0.3)' }}
whileTap={{ scale: 0.94 }}
>
<span style={{ position: 'relative', zIndex: 10 }}>◈ PORTAL</span>
<motion.div style={{ position: 'absolute', inset: 0, border: '2px solid rgba(167,139,250,0.12)', borderRadius: '0.75rem' }}
animate={{ scale: [0.95, 1.05, 0.95], opacity: [0.2, 0.5, 0.2] }}
transition={{ duration: 3, repeat: Infinity, ease: 'easeInOut' }}
/>
<motion.div style={{ position: 'absolute', inset: 0, background: 'radial-gradient(circle at 50% 50%, rgba(167,139,250,0.1), transparent 60%)' }}
animate={{ scale: [0.8, 1.2, 0.8], opacity: [0.1, 0.4, 0.1] }}
transition={{ duration: 2.5, repeat: Infinity, ease: 'easeInOut' }}
/>
<motion.div style={{ position: 'absolute', inset: -4, border: '1px dashed rgba(167,139,250,0.08)', borderRadius: '0.75rem' }}
animate={{ rotate: 360 }} transition={{ duration: 10, repeat: Infinity, ease: 'linear' }}
/>
</motion.button>
);
}LWC — HTML template
<template><button class="quantum-btn" onclick={handleClick}><span style="position:relative;z-index:10"><slot>◈ PORTAL</slot></span><div class="quantum-ring"></div><div class="quantum-core"></div><div class="quantum-outer"></div></button></template>LWC — JavaScript
import { LightningElement, api } from 'lwc';
export default class QuantumButton extends LightningElement {
@api label = '◈ PORTAL';
handleClick() { this.dispatchEvent(new CustomEvent('buttonclick', { bubbles: true, composed: true })); }
}LWC — CSS
.quantum-btn { position: relative; padding: 1.25rem 2.5rem; border-radius: 0.75rem; font-weight: 700; letter-spacing: 0.05em; background: linear-gradient(135deg, #0a0015, #1a0030, #2d0a4a, #0a0015); background-size: 400% 400%; color: #a78bfa; border: 1px solid rgba(167,139,250,0.2); cursor: pointer; overflow: hidden; animation: quantum-drift 6s linear infinite; transition: all 0.3s ease; }
.quantum-btn:hover { transform: scale(1.06); box-shadow: 0 0 50px rgba(167,139,250,0.3); }
.quantum-btn:active { transform: scale(0.94); }
.quantum-ring { position: absolute; inset: 0; border: 2px solid rgba(167,139,250,0.12); border-radius: 0.75rem; animation: quantum-ripple 3s ease-in-out infinite; pointer-events: none; }
.quantum-core { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(167,139,250,0.1), transparent 60%); animation: quantum-pulse 2.5s ease-in-out infinite; pointer-events: none; }
.quantum-outer { position: absolute; inset: -4px; border: 1px dashed rgba(167,139,250,0.08); border-radius: 0.75rem; animation: quantum-spin 10s linear infinite; pointer-events: none; }
@keyframes quantum-drift { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
@keyframes quantum-ripple { 0%,100% { transform: scale(0.95); opacity: 0.2; } 50% { transform: scale(1.05); opacity: 0.5; } }
@keyframes quantum-pulse { 0%,100% { transform: scale(0.8); opacity: 0.1; } 50% { transform: scale(1.2); opacity: 0.4; } }
@keyframes quantum-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }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 Quantum Portal Button fits
- AI
- Sci-Fi
- Technology
- Gaming
- Futuristic Apps
Interaction states & animations
- Portal Opening
- Swirling Energy
- Dimensional Ripple
- Particle Tunnel
Topics
- #quantum
- #portal
- #dimension
- #warp
- #sci-fi
- #energy
- #particle
Accessibility notes
Intense swirling portal may trigger sensory issues — respect prefers-reduced-motion. Pause on focus.
Browser support
- All modern browsers