Skip to content

Slide Arrow Tip

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

TooltipsHTMLCSSany framework

Copy into your project

HTML
<div class="nuda-slidearr-wrap">
  <button class="nuda-slidearr__trigger" aria-describedby="slidearr-tip-1">
    Hover me
  </button>
  <div class="nuda-slidearr" role="tooltip" id="slidearr-tip-1">
    Slides in from the right
    <span class="nuda-slidearr__arrow"></span>
  </div>
</div>
CSS
/* Slide Arrow Tip
   Tooltip that slides in horizontally with a pointing arrow.
   Shows on hover and keyboard focus.
   Customize: --tooltip-bg */

.nuda-slidearr-wrap {
  position: relative;
  display: inline-block;
}

.nuda-slidearr__trigger {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ccc;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
}

.nuda-slidearr {
  --tooltip-bg: #1a1a1a;
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--tooltip-bg);
  border: 1px solid rgba(228, 255, 84, 0.2);
  color: #ccc;
  font-size: 0.75rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nuda-slidearr__arrow {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: var(--tooltip-bg);
}

.nuda-slidearr-wrap:hover .nuda-slidearr,
.nuda-slidearr__trigger:focus-visible + .nuda-slidearr {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .nuda-slidearr { transition: none; }
}

How to use Slide Arrow Tip

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 tooltips components

← Browse all NudaUI components