Skip to content

Read Cursor

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

CursorsHTMLCSSany framework

Hover this paragraph to read

Copy into your project

HTML
<p class="nuda-cur2-text-select">
  Hover this paragraph to read
  <span class="nuda-cur2-text-select__caret" aria-hidden="true"></span>
</p>
CSS
.nuda-cur2-text-select {
  position: relative;
  max-width: 210px;
  margin: 0 auto;
  padding: 14px 16px;
  color: #cfcfcf;
  font-size: 13px;
  line-height: 1.5;
  cursor: text;
  border-radius: 10px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.08);
}

.nuda-cur2-text-select::selection {
  background: rgba(228,255,84,.3);
  color: #0a0a0a;
}

.nuda-cur2-text-select__caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  background: #e4ff54;
  vertical-align: -2px;
  opacity: 0;
}

.nuda-cur2-text-select:hover .nuda-cur2-text-select__caret {
  opacity: 1;
  animation: _nuda-cur2textselect 1s steps(2,jump-none) infinite;
}

@keyframes _nuda-cur2textselect {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion:reduce) {
  .nuda-cur2-text-select__caret {
    animation: none;
    opacity: .6;
  }
}

How to use Read Cursor

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