Geo Locating
A copy-paste maps & locations component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Maps & LocationsHTMLCSSany framework
Copy into your project
HTML
<div class="nuda-geoloc">
<div class="nuda-geoloc__ring"></div>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="9" />
<path d="M16 8l-4 8-4-8 8 0z" fill="currentColor" />
</svg>
</div>CSS
.nuda-geoloc {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
border-radius: 50%;
background: rgba(228,255,84,.08);
color: #e4ff54;
}
.nuda-geoloc svg {
width: 20px;
height: 20px;
animation: _geoSpin 4s linear infinite;
}
.nuda-geoloc__ring {
position: absolute;
inset: -2px;
border-radius: 50%;
border: 2px solid #e4ff54;
border-right-color: transparent;
border-bottom-color: transparent;
animation: _geoSpin 1.4s linear infinite reverse;
}
@keyframes _geoSpin {
to {
transform: rotate(360deg);
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-geoloc svg,.nuda-geoloc__ring {
animation: none;
}
}
How to use Geo Locating
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.