Ripple Halo CTA
A soft ring expands beyond the button edge, adding a subtle halo to the call to action.
A soft ring expands beyond the button edge, adding a subtle halo to the call to action.
Live Demo
Hover over the element or use Tab to focus.
Source Code
Copy the HTML, CSS or JavaScript you need for your project.
<button class="tbx-1026" type="button"><span>Contact</span></button>
.tbx-1026{position:relative;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;min-width:178px;min-height:51px;padding:13px 24px;border:1px solid #247b83;border-radius:30px;background:#eaf6f3;color:#15565b;font:700 14px/1.4 system-ui,sans-serif;cursor:pointer;transition:background .25s ease}
.tbx-1026::after{content:"";position:absolute;inset:-2px;z-index:-1;border:2px solid #2d9892;border-radius:inherit;opacity:0;transform:scale(.97);transition:transform .48s cubic-bezier(.15,.75,.25,1),opacity .35s ease}
.tbx-1026:is(:hover,:focus-visible){background:#d8f3ee}
.tbx-1026:is(:hover,:focus-visible)::after{opacity:1;transform:scale(1.18)}
.tbx-1026:focus-visible{outline:3px solid #855fc2;outline-offset:7px}
@media(prefers-reduced-motion:reduce){.tbx-1026,.tbx-1026::after{transition:none}}
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 service 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.