Double Pulse
A copy-paste borders & outlines component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Borders & OutlinesHTMLCSSany framework
Live
Copy into your project
HTML
<div class="nuda-dpb-border">
<span class="nuda-dpb-border__ring nuda-dpb-border__ring--1"></span>
<span class="nuda-dpb-border__ring nuda-dpb-border__ring--2"></span>
<span class="nuda-dpb-border__core">Live</span>
</div>CSS
.nuda-dpb-border {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
width: 120px;
height: 64px;
}
.nuda-dpb-border__ring {
position: absolute;
inset: 0;
border: 1.5px solid #e4ff54;
border-radius: 12px;
opacity: 0;
will-change: transform,opacity;
}
.nuda-dpb-border__ring--1 {
animation: _nuda-dpbPulse 2.4s ease-out infinite;
}
.nuda-dpb-border__ring--2 {
animation: _nuda-dpbPulse 2.4s ease-out infinite;
animation-delay: 1.2s;
}
.nuda-dpb-border__core {
position: relative;
background: #141414;
border: 1px solid rgba(228,255,84,.4);
border-radius: 10px;
padding: 10px 22px;
color: #e4ff54;
font-size: .8rem;
font-weight: 600;
letter-spacing: .06em;
text-transform: uppercase;
}
@keyframes _nuda-dpbPulse {
0% {
transform: scale(1);
opacity: .8;
}
100% {
transform: scale(1.35);
opacity: 0;
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-dpb-border__ring {
animation: none;
opacity: .4;
}
}
How to use Double Pulse
Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.
Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.