Reticle Focus Icon
Four corner markers converge like a targeting reticle inside an icon.
Four corner markers converge like a targeting reticle inside an icon.
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-1287" type="button" aria-label="Select target"><span class="tbx-1287__corner tbx-1287__tl"></span><span class="tbx-1287__corner tbx-1287__tr"></span><span class="tbx-1287__corner tbx-1287__bl"></span><span class="tbx-1287__corner tbx-1287__br"></span><span class="tbx-1287__dot"></span><small>SELECT</small></button>
.tbx-1287{box-sizing:border-box;display:grid;place-items:center;position:relative;width:115px;height:115px;border:none;border-radius:15px;background:#172c36;color:#e5f5ed;cursor:pointer;overflow:hidden;transition:background .35s}
.tbx-1287__corner{position:absolute;width:20px;height:20px;border:2px solid #8de2c7;transition:inset .4s,transform .4s}
.tbx-1287__tl{top:15px;left:15px;border-right:none;border-bottom:none}.tbx-1287__tr{top:15px;right:15px;border-left:none;border-bottom:none}.tbx-1287__bl{bottom:15px;left:15px;border-right:none;border-top:none}.tbx-1287__br{bottom:15px;right:15px;border-left:none;border-top:none}
.tbx-1287__dot{position:absolute;width:9px;height:9px;background:#f8bf83;border-radius:50%;transition:transform .4s}
.tbx-1287 small{position:absolute;bottom:9px;font:700 9px/1 system-ui,sans-serif;letter-spacing:.1em;color:#e1eeda}
.tbx-1287:hover,.tbx-1287:focus-visible{background:#204451}.tbx-1287:hover .tbx-1287__tl,.tbx-1287:focus-visible .tbx-1287__tl{top:30px;left:30px}.tbx-1287:hover .tbx-1287__tr,.tbx-1287:focus-visible .tbx-1287__tr{top:30px;right:30px}.tbx-1287:hover .tbx-1287__bl,.tbx-1287:focus-visible .tbx-1287__bl{bottom:30px;left:30px}.tbx-1287:hover .tbx-1287__br,.tbx-1287:focus-visible .tbx-1287__br{bottom:30px;right:30px}
.tbx-1287:hover .tbx-1287__dot,.tbx-1287:focus-visible .tbx-1287__dot{transform:scale(1.8)}.tbx-1287:focus-visible{outline:3px solid #8de2c7;outline-offset:4px}
@media(prefers-reduced-motion:reduce){.tbx-1287,.tbx-1287__corner,.tbx-1287__dot{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 user interfaces and data dashboards.
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.