TipsBlocks Web Technique Library

PRACTICAL WEB TIP

← Back to library

Arrow Pass Through

A circular arrow exits the button and reappears from the opposite side to suggest forward movement.

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-1014" type="button"><span>View details</span><span class="tbx-1014__disc" aria-hidden="true"><span class="tbx-1014__track"><span>↗</span><span>↗</span></span></span></button>
CSS
.tbx-1014{display:inline-flex;align-items:center;justify-content:center;gap:15px;padding:6px 4px;border:0;background:transparent;color:#173958;font:650 14px/1.4 system-ui,sans-serif;cursor:pointer}
.tbx-1014__disc{display:grid;place-items:center;width:43px;height:43px;overflow:hidden;border:1px solid #a3bfd5;border-radius:50%;background:#fff}
.tbx-1014__track{display:flex;align-items:center;gap:15px;transform:translateX(20px);transition:transform .32s cubic-bezier(.24,.78,.24,1)}
.tbx-1014__track span{display:block;width:22px;flex:none;text-align:center;font:23px/1 system-ui;color:#1d6b91}
.tbx-1014:is(:hover,:focus-visible) .tbx-1014__track{transform:translateX(-17px)}
.tbx-1014:focus-visible{outline:3px solid #7b65db;outline-offset:5px;border-radius:3px}
@media(prefers-reduced-motion:reduce){.tbx-1014__track{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 navigation menus.

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.