Skip to content

Hover-Scale Indicator

A copy-paste cursors component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

CursorsHTMLCSSany framework

Copy into your project

HTML
<div class="nuda-cur2-hover-scale">
  <span class="nuda-cur2-hover-scale__dot" aria-hidden="true"></span>
  <div class="nuda-cur2-hover-scale__row">
    <button type="button" class="nuda-cur2-hover-scale__chip">Link</button>
    <button type="button" class="nuda-cur2-hover-scale__chip">Link</button>
    <button type="button" class="nuda-cur2-hover-scale__chip">Link</button>
  </div>
</div>
CSS
.nuda-cur2-hover-scale {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 18px;
}

.nuda-cur2-hover-scale__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e4ff54;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1),box-shadow .25s ease;
}

.nuda-cur2-hover-scale__row {
  display: flex;
  gap: 8px;
}

.nuda-cur2-hover-scale__chip {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: #161616;
  color: #cfcfcf;
  font-size: 12px;
  cursor: pointer;
  transition: border-color .2s ease,color .2s ease;
}

.nuda-cur2-hover-scale__chip:hover {
  border-color: #e4ff54;
  color: #fafafa;
}

.nuda-cur2-hover-scale:has(.nuda-cur2-hover-scale__chip:hover) .nuda-cur2-hover-scale__dot {
  transform: scale(2.2);
  box-shadow: 0 0 18px rgba(228,255,84,.5);
}

.nuda-cur2-hover-scale__chip:focus-visible {
  outline: 2px solid #e4ff54;
  outline-offset: 2px;
}

@media (prefers-reduced-motion:reduce) {
  .nuda-cur2-hover-scale__dot,.nuda-cur2-hover-scale__chip {
    transition: none;
  }
}

How to use Hover-Scale Indicator

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.

More cursors components

← Browse all NudaUI components