TipsBlocks Web Technique Library

PRACTICAL WEB TIP

← Back to library

Liquid Ring Button

A small circular highlight expands across an entire button like a drop of liquid.

Live Demo

Hover over the element or use Tab to focus.

Source Code

Copy the HTML, CSS or JavaScript you need for your project.

HTML
<button class="tbx-1278" type="button"><span class="tbx-1278__orb" aria-hidden="true"></span><span class="tbx-1278__text">View detailed brochure</span><span class="tbx-1278__arrow" aria-hidden="true">↗</span></button>
CSS
.tbx-1278{box-sizing:border-box;display:inline-flex;position:relative;isolation:isolate;align-items:center;justify-content:space-between;gap:18px;max-width:100%;min-width:226px;min-height:62px;padding:15px 19px 15px 28px;border:1px solid #ae7c51;border-radius:999px;background:#fffaf5;color:#71482d;font:700 14px/1.4 system-ui,sans-serif;cursor:pointer;overflow:hidden;transition:color .55s,border-color .55s}
.tbx-1278__orb{position:absolute;z-index:-1;left:22px;top:50%;width:8px;height:8px;border-radius:50%;background:#995f33;transform:translateY(-50%) scale(1);transition:transform .65s cubic-bezier(.19,1,.22,1)}
.tbx-1278__arrow{display:grid;place-items:center;flex:none;width:28px;height:28px;border:1px solid currentColor;border-radius:50%;font-size:18px;transition:transform .45s,background .45s}
.tbx-1278:hover,.tbx-1278:focus-visible{color:#fff;border-color:#995f33}
.tbx-1278:hover .tbx-1278__orb,.tbx-1278:focus-visible .tbx-1278__orb{transform:translateY(-50%) scale(80)}
.tbx-1278:hover .tbx-1278__arrow,.tbx-1278:focus-visible .tbx-1278__arrow{transform:rotate(45deg);background:#ffffff24}
.tbx-1278:focus-visible{outline:3px solid #e1a572;outline-offset:4px}
@media(prefers-reduced-motion:reduce){.tbx-1278,.tbx-1278__orb,.tbx-1278__arrow{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 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.