TipsBlocks Web Technique Library

PRACTICAL WEB TIP

← Back to library

Icon Quarter Turn

An arrow rotates ninety degrees inside its circular frame to indicate a change in direction.

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-1023" type="button" aria-label="View details"><span class="tbx-1023__disc"><span aria-hidden="true">➜</span></span><span class="tbx-1023__label">View details</span></button>
CSS
.tbx-1023{display:flex;align-items:center;gap:12px;padding:4px;border:0;background:transparent;color:#1f3854;font:650 13px/1.4 system-ui;cursor:pointer}
.tbx-1023__disc{display:grid;place-items:center;width:50px;height:50px;background:#e1eff4;border:1px solid #a3c4d0;border-radius:50%;color:#276e8c}
.tbx-1023__disc span{display:block;font:23px/1 system-ui;transition:transform .38s cubic-bezier(.25,.85,.25,1)}
.tbx-1023:is(:hover,:focus-visible) .tbx-1023__disc span{transform:rotate(90deg)}
.tbx-1023:focus-visible{outline:3px solid #7b65db;outline-offset:4px;border-radius:3px}
@media(prefers-reduced-motion:reduce){.tbx-1023__disc span{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 navigation menus and calls to action.

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.