20 CSS Neon Text Effects04 / 20

Pure CSSMIT licensed

Pulse-Glow Text Notification

A subtle, breathing neon status line for dashboards and admin panels — the kind of 'something needs your attention' pulse that reads as alive without shouting. A soft dot and label inhale and exhale their glow together.

Published

Live Demo
Try it

The code

<div class="cnt-04">
  <div class="cnt-04__row">
    <span class="cnt-04__dot" aria-hidden="true"></span>
    <span class="cnt-04__msg"><strong>3 deployments</strong> awaiting review</span>
  </div>
</div>
.cnt-04,
.cnt-04 *,
.cnt-04 *::before,
.cnt-04 *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.cnt-04 ::selection {
  background: oklch(0.86 0.19 150);
  color: #03140b;
}

.cnt-04 {
  --accent: oklch(0.86 0.2 150);
  font-family: 'Segoe UI',system-ui,sans-serif;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: radial-gradient(120% 120% at 50% 30%,#0b100d,#050705);
}

.cnt-04__row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border-radius: 12px;
  background: #0a0d0b;
  border: 1px solid #182018;
  box-shadow: 0 30px 60px -40px #000;
}

.cnt-04__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  animation: cnt-04-breathe 2.4s ease-in-out infinite;
}

.cnt-04__msg {
  font-size: 16px;
  letter-spacing: .01em;
  color: var(--accent);
  animation: cnt-04-breathe 2.4s ease-in-out infinite;
}

.cnt-04__msg strong {
  color: #eafff2;
  font-weight: 700;
}

@keyframes cnt-04-breathe {
  0%,
    100% {
    opacity: .72;
    text-shadow: 0 0 4px color-mix(in oklch,var(--accent) 55%,transparent);
    box-shadow: 0 0 4px color-mix(in oklch,var(--accent) 50%,transparent);
  }

  50% {
    opacity: 1;
    text-shadow: 0 0 8px var(--accent),0 0 20px var(--accent),0 0 40px color-mix(in oklch,var(--accent) 60%,transparent);
    box-shadow: 0 0 10px var(--accent),0 0 22px color-mix(in oklch,var(--accent) 60%,transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cnt-04__dot,
    .cnt-04__msg {
    animation: none;
    text-shadow: 0 0 10px var(--accent);
    opacity: 1;
  }
}
/* No JavaScript — one eased @keyframes 'breathe' shared by dot and label. */
Paste this into ChatGPT, Claude, Cursor, or any coding assistant. The block below is pre-framed with everything the AI needs to integrate this demo into your project — markup, styles, scoping notes, and the source URL. Hit Copy and paste straight into your chat.
Here's a working CSS Neon Text Effect from CodeFronts. Use it as-is or adapt to your framework. All classes are scoped under a unique prefix so the code won't collide with your existing styles. MIT licensed.
Demo: Pulse-Glow Text Notification
Source: https://codefronts.com/motion/css-neon-text-effect/pulse-glow-text-notification/

A subtle, breathing neon status line for dashboards and admin panels — the kind of 'something needs your attention' pulse that reads as alive without shouting. A soft dot and label inhale and exhale their glow together.
## HTML
```html
<div class="cnt-04">
  <div class="cnt-04__row">
    <span class="cnt-04__dot" aria-hidden="true"></span>
    <span class="cnt-04__msg"><strong>3 deployments</strong> awaiting review</span>
  </div>
</div>
```
## CSS
```css
.cnt-04,
.cnt-04 *,
.cnt-04 *::before,
.cnt-04 *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.cnt-04 ::selection {
  background: oklch(0.86 0.19 150);
  color: #03140b;
}

.cnt-04 {
  --accent: oklch(0.86 0.2 150);
  font-family: 'Segoe UI',system-ui,sans-serif;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: radial-gradient(120% 120% at 50% 30%,#0b100d,#050705);
}

.cnt-04__row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border-radius: 12px;
  background: #0a0d0b;
  border: 1px solid #182018;
  box-shadow: 0 30px 60px -40px #000;
}

.cnt-04__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  animation: cnt-04-breathe 2.4s ease-in-out infinite;
}

.cnt-04__msg {
  font-size: 16px;
  letter-spacing: .01em;
  color: var(--accent);
  animation: cnt-04-breathe 2.4s ease-in-out infinite;
}

.cnt-04__msg strong {
  color: #eafff2;
  font-weight: 700;
}

@keyframes cnt-04-breathe {
  0%,
    100% {
    opacity: .72;
    text-shadow: 0 0 4px color-mix(in oklch,var(--accent) 55%,transparent);
    box-shadow: 0 0 4px color-mix(in oklch,var(--accent) 50%,transparent);
  }

  50% {
    opacity: 1;
    text-shadow: 0 0 8px var(--accent),0 0 20px var(--accent),0 0 40px color-mix(in oklch,var(--accent) 60%,transparent);
    box-shadow: 0 0 10px var(--accent),0 0 22px color-mix(in oklch,var(--accent) 60%,transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cnt-04__dot,
    .cnt-04__msg {
    animation: none;
    text-shadow: 0 0 10px var(--accent);
    opacity: 1;
  }
}
```

## JavaScript
```js
/* No JavaScript — one eased @keyframes 'breathe' shared by dot and label. */
```

How this works

A single @keyframes breathe eases the text-shadow and opacity up and down on a slow ~2.4s loop, so the glow swells and recedes like breath rather than blinking. The leading status dot runs the same timeline via a scaled box-shadow halo, keeping dot and text in phase.

Because only opacity and shadow blur animate — no layout, no color repaint of large areas — it stays cheap enough to leave running indefinitely in a live dashboard. The accent is a calm oklch green tuned for 'active/healthy'.

Make it yours

  • Retune the mood with --accent — green 'live', amber 'attention', red 'critical' all read instantly.
  • Change the tempo via the breathe duration; slower feels premium, faster feels urgent.
  • Increase the peak text-shadow blur for a stronger swell, or lower it for a whisper.
  • Drop the dot and apply the pulse to an icon-font glyph or a count badge instead.

Gotchas — read before shipping

  • Keep the pulse gentle — a dashboard full of hard blinks becomes noise and gets ignored; the breathe curve is deliberately soft.
  • This is decorative emphasis, not a substitute for a real role="status"/aria-live region if the count actually changes.
  • Animating text-shadow blur repaints; for hundreds of simultaneous pulses prefer the opacity-only technique in demo 15.

Browser support

ChromeSafariFirefoxEdge
111+16.2+113+111+

Floor set by oklch(), color-mix() as this demo is written. The core technique itself goes back further — Chrome 80+.

Pure @keyframes on text-shadow/opacity — universal support.

Techniques used in this demo

Search CodeFronts

Loading…