Crosshair Reticle
A copy-paste cursors component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
CursorsHTMLCSSany framework
Hover to aim
Copy into your project
HTML
<div class="nuda-cur2-crosshair">
<span class="nuda-cur2-crosshair__h"></span>
<span class="nuda-cur2-crosshair__v"></span>
<span class="nuda-cur2-crosshair__dot"></span>
<span class="nuda-cur2-crosshair__label">Hover to aim</span>
</div>CSS
.nuda-cur2-crosshair {
position: relative;
width: 100%;
max-width: 220px;
height: 120px;
margin: 0 auto;
border-radius: 12px;
background: rgba(255,255,255,.02);
border: 1px solid rgba(255,255,255,.08);
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
cursor: crosshair;
}
.nuda-cur2-crosshair__h,.nuda-cur2-crosshair__v {
position: absolute;
background: rgba(228,255,84,.25);
opacity: 0;
transition: opacity .25s ease;
}
.nuda-cur2-crosshair__h {
left: 0;
right: 0;
top: 50%;
height: 1px;
transform: translateY(-50%);
}
.nuda-cur2-crosshair__v {
top: 0;
bottom: 0;
left: 50%;
width: 1px;
transform: translateX(-50%);
}
.nuda-cur2-crosshair__dot {
width: 10px;
height: 10px;
border: 2px solid #e4ff54;
border-radius: 50%;
opacity: .5;
transition: transform .25s cubic-bezier(.34,1.56,.64,1),opacity .25s ease;
}
.nuda-cur2-crosshair__label {
position: absolute;
bottom: 10px;
color: #777;
font-size: 11px;
transition: opacity .2s ease;
}
.nuda-cur2-crosshair:hover .nuda-cur2-crosshair__h,.nuda-cur2-crosshair:hover .nuda-cur2-crosshair__v {
opacity: 1;
}
.nuda-cur2-crosshair:hover .nuda-cur2-crosshair__dot {
transform: scale(1.6);
opacity: 1;
animation: _nuda-cur2crosshair 1.2s ease-in-out infinite;
}
.nuda-cur2-crosshair:hover .nuda-cur2-crosshair__label {
opacity: 0;
}
@keyframes _nuda-cur2crosshair {
0%,100% {
box-shadow: 0 0 0 0 rgba(228,255,84,.35);
}
50% {
box-shadow: 0 0 0 8px rgba(228,255,84,0);
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-cur2-crosshair__dot {
animation: none !important;
transition: none;
}
}
How to use Crosshair Reticle
Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.
Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.