Prism Edge CTA
A multicolor rim travels around a restrained dark button outline on hover.
A multicolor rim travels around a restrained dark button outline on hover.
Live Demo
Hover over the element or use Tab to focus.
Source Code
Copy the HTML, CSS or JavaScript you need for your project.
<a class="tbx-1097" href="#contact"><span class="tbx-1097__inner"><small>LET’S TALK</small><strong>Discuss a project</strong><b aria-hidden="true">↗</b></span></a>
.tbx-1097{position:relative;display:block;width:min(279px,100%);padding:2px;border-radius:13px;background:#263e50;color:#fff;text-decoration:none;isolation:isolate;overflow:hidden;font-family:system-ui,sans-serif;box-shadow:0 7px 20px #18304a1a}
.tbx-1097::before{content:"";position:absolute;inset:-130%;background:conic-gradient(from 30deg,#e8b78b,#b3d3ba,#6db8ce,#b7a4de,#e8b78b);transform:rotate(0);opacity:0;transition:opacity .25s,transform .7s cubic-bezier(.2,.8,.2,1)}
.tbx-1097__inner{position:relative;display:flex;align-items:center;gap:10px;border-radius:11px;background:#182e41;padding:18px 14px;min-height:70px}
.tbx-1097 small{position:absolute;top:10px;left:14px;font-size:8px;font-weight:800;letter-spacing:.12em;color:#adc6d6}.tbx-1097 strong{font-size:15px;letter-spacing:-.02em;padding-top:8px;white-space:nowrap}.tbx-1097 b{margin-left:auto;font-size:25px;font-weight:450;transition:transform .4s;color:#a8d7d0}
.tbx-1097:is(:hover,:focus-visible)::before{opacity:1;transform:rotate(180deg)}.tbx-1097:is(:hover,:focus-visible) b{transform:translate(3px,-3px)}
.tbx-1097:focus-visible{outline:3px solid #edb486;outline-offset:4px}@media(prefers-reduced-motion:reduce){.tbx-1097::before,.tbx-1097 b{transition:none!important}}
How to Use
Insert the HTML and add the CSS to your stylesheet. Adjust colors and sizes and avoid class conflicts.
Use Case
Useful for calls to action and landing pages.
Technical Notes
Keep controls usable on touch devices. Test keyboard focus and reduced-motion preferences.
Mobile: Ensure the interactive content remains accessible without hover on touch devices.
Browser: Uses modern CSS. Check behavior in the browsers you support.
Reduced Motion: Check that prefers-reduced-motion is respected.