Skip to content

Shine Sweep

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

ButtonsHTMLCSSany framework

Copy into your project

HTML
<button class="nuda-btn-shine-sweep">
  <span>Shine Sweep</span>
</button>
CSS
/* Shine Sweep — a diagonal highlight sweeps across the button on hover. */
.nuda-btn-shine-sweep {
  position: relative;
  padding: 12px 30px;
  background: #0c0c10;
  color: #e4ff54;
  border: 1px solid rgba(228, 255, 84, 0.4);
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
}

.nuda-btn-shine-sweep span { position: relative; z-index: 1; }

.nuda-btn-shine-sweep::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 60%;
  background: linear-gradient(110deg, transparent 20%, rgba(228, 255, 84, 0.35) 50%, transparent 80%);
  transform: translateX(-180%) skewX(-20deg);
  transition: transform 0.6s ease;
}

.nuda-btn-shine-sweep:hover::before {
  transform: translateX(280%) skewX(-20deg);
}

.nuda-btn-shine-sweep:focus-visible {
  outline: 2px solid #e4ff54;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .nuda-btn-shine-sweep::before { transition: none; }
}

How to use Shine Sweep

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

← Browse all NudaUI components