DNA Helix Button
Animated energy strands twist around the button in a double helix with molecular glow
Embed this component
Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/dna-helix-button.
<iframe src="/embed/dna-helix-button" sandbox="allow-scripts" loading="lazy" title="DNA Helix Button" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>Implementation code
Copy the HTML and CSS for DNA Helix 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="dna-btn">🧬 DNA</button>CSS
.dna-btn {
position: relative;
padding: 1rem 2rem;
border-radius: 0.75rem;
font-weight: 700;
background: linear-gradient(135deg, #020617, #0f172a, #020617);
color: #4ade80;
border: 1px solid rgba(74,222,128,0.2);
cursor: pointer;
overflow: hidden;
transition: all 0.3s ease;
}
.dna-btn:hover { transform: scale(1.04); box-shadow: 0 0 30px rgba(74,222,128,0.2); }
.dna-btn:active { transform: scale(0.96); }
.dna-helix-1 { position: absolute; inset: 0; border-radius: 0.75rem; opacity: 0.2; background: repeating-linear-gradient(90deg, transparent, transparent 4px, rgba(74,222,128,0.3) 4px, transparent 8px); animation: helix-scroll 1.5s linear infinite; }
.dna-helix-2 { position: absolute; inset: 0; border-radius: 0.75rem; opacity: 0.2; background: repeating-linear-gradient(0deg, transparent, transparent 4px, rgba(74,222,128,0.2) 4px, transparent 8px); animation: helix-scroll-2 2s linear infinite; }
@keyframes helix-scroll { 0% { background-position: 0px 0px; } 100% { background-position: 24px 0px; } }
@keyframes helix-scroll-2 { 0% { background-position: 0px 0px; } 100% { background-position: 0px 24px; } }Tailwind CSS
<button class="px-8 py-4 rounded-xl font-bold bg-gradient-to-br from-slate-950 via-slate-900 to-slate-950 text-green-400 border border-green-400/20 hover:scale-104 active:scale-96 transition-all overflow-hidden relative">
<span class="relative z-10">🧬 DNA</span>
<div class="absolute inset-0 rounded-xl opacity-20 pointer-events-none" style="background: repeating-linear-gradient(90deg, transparent, transparent 4px, rgba(74,222,128,0.3) 4px, transparent 8px); animation: helix-scroll 1.5s linear infinite;" />
</button>React
function DnaButton() {
return (
<motion.button
className="px-8 py-4 rounded-xl font-bold relative overflow-hidden"
style={{ background: 'linear-gradient(135deg, #020617, #0f172a, #020617)', color: '#4ade80', border: '1px solid rgba(74,222,128,0.2)', cursor: 'pointer' }}
whileHover={{ scale: 1.04, boxShadow: '0 0 30px rgba(74,222,128,0.2)' }}
whileTap={{ scale: 0.96 }}
>
<span style={{ position: 'relative', zIndex: 10 }}>🧬 DNA</span>
<motion.div style={{ position: 'absolute', inset: 0, opacity: 0.2, background: 'repeating-linear-gradient(90deg, transparent, transparent 4px, rgba(74,222,128,0.3) 4px, transparent 8px)' }}
animate={{ backgroundPosition: ['0px 0px', '24px 0px'] }} transition={{ duration: 1.5, repeat: Infinity, ease: 'linear' }}
/>
</motion.button>
);
}LWC — HTML template
<template><button class="dna-btn" onclick={handleClick}><span style="position:relative;z-index:10"><slot>🧬 DNA</slot></span><div class="dna-helix-1"></div><div class="dna-helix-2"></div></button></template>LWC — JavaScript
import { LightningElement, api } from 'lwc';
export default class DnaButton extends LightningElement {
@api label = '🧬 DNA';
handleClick() { this.dispatchEvent(new CustomEvent('buttonclick', { bubbles: true, composed: true })); }
}LWC — CSS
.dna-btn { position: relative; padding: 1rem 2rem; border-radius: 0.75rem; font-weight: 700; background: linear-gradient(135deg, #020617, #0f172a, #020617); color: #4ade80; border: 1px solid rgba(74,222,128,0.2); cursor: pointer; overflow: hidden; transition: all 0.3s ease; }
.dna-btn:hover { transform: scale(1.04); box-shadow: 0 0 30px rgba(74,222,128,0.2); }
.dna-btn:active { transform: scale(0.96); }
.dna-helix-1 { position: absolute; inset: 0; border-radius: 0.75rem; opacity: 0.2; background: repeating-linear-gradient(90deg, transparent, transparent 4px, rgba(74,222,128,0.3) 4px, transparent 8px); animation: helix-scroll 1.5s linear infinite; pointer-events: none; }
.dna-helix-2 { position: absolute; inset: 0; border-radius: 0.75rem; opacity: 0.2; background: repeating-linear-gradient(0deg, transparent, transparent 4px, rgba(74,222,128,0.2) 4px, transparent 8px); animation: helix-scroll-2 2s linear infinite; pointer-events: none; }
@keyframes helix-scroll { 0% { background-position: 0px 0px; } 100% { background-position: 24px 0px; } }
@keyframes helix-scroll-2 { 0% { background-position: 0px 0px; } 100% { background-position: 0px 24px; } }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 DNA Helix Button fits
- Healthcare
- Biotech
- AI
- Science
- Research
Interaction states & animations
- Double Helix
- Energy Flow
- Particle Stream
- Rotation
Topics
- #dna
- #helix
- #biotech
- #molecular
- #science
- #energy
- #strand
Accessibility notes
Rotating helix may cause dizziness - respect prefers-reduced-motion. Pause on focus for accessibility.
Browser support
- All modern browsers