Neon Glow Button

A pure CSS button with a pulsing neon glow using @keyframes and box-shadow. Drop in the class and it works — no JavaScript needed.

css
  .neon-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: transparent;
    color: #f97316;
    border: 2px solid #f97316;
    border-radius: 8px;
    font-size: 1rem;
    font-family: system-ui, sans-serif;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: neon-glow 2s ease-in-out infinite alternate;
    transition: background 0.2s, color 0.2s;
  }

  .neon-btn:hover {
    background: #f97316;
    color: #0f0f0f;
  }

  @keyframes neon-glow {
    from {
      box-shadow:
        0 0 5px #f97316,
        0 0 10px #f97316,
        0 0 20px #f97316;
    }
    to {
      box-shadow:
        0 0 10px #f97316,
        0 0 30px #f97316,
        0 0 60px #f97316,
        0 0 90px #f97316;
    }
  }

Feedback (0)