Skip to content

Neon Glow Profile Card

Dark profile card with an animated neon conic-gradient border, soft glow, stats, skill tags and a Follow toggle, built with pure CSS and vanilla JS.

Also known as: glowing profile card, neon user card, animated border card, dark author card

Neon Glow Profile Card live demo

Open in new tab

Pure CSS code (HTML, CSS, JS)

A dark profile card with a spinning neon gradient border and a soft glow, built with pure CSS and a tiny vanilla JavaScript follow toggle. Use it for team pages, creator profiles, author boxes, community directories or a personal landing page.

How it works

The wrapper .npc-stage provides the dark background and centers the article.npc-card. The card has a transparent border and two background layers: a solid --npc-surface color clipped to the padding-box, and a conic-gradient clipped to the border-box. Only the border area shows the gradient, which gives a crisp colored outline without extra wrapper elements.

The gradient starts at the angle --npc-angle, which is registered with @property as an <angle>. Because the browser knows its type, the npc-spin keyframes can animate it from 0deg to 360deg, so the colors travel around the border. The ::before pseudo-element repeats the same conic gradient behind the card with filter: blur(), creating the neon glow, and it brightens on :hover and :focus-within. In browsers without @property the border and glow still appear, just without rotation.

Inside the card are the .npc-avatar with initials and a status dot, a .npc-badge, the .npc-name and .npc-role, a short .npc-bio, a list of .npc-skills, a three-column dl.npc-stats block, the .npc-actions buttons and .npc-social icon links. The script listens for click on each .npc-follow button, flips aria-pressed, swaps the label between Follow and Following, and updates .npc-followers from its data-count value.

Customization

  • --npc-glow-1, --npc-glow-2 and --npc-glow-3 on .npc-stage: the three colors of the border, glow, avatar ring and primary button.
  • --npc-spin: duration of one full rotation of the border; use 10s for a slower, calmer effect.
  • --npc-blur: glow softness; larger values spread the light further around the card.
  • --npc-border: thickness of the gradient border, for example 3px for a bolder outline.
  • --npc-surface and --npc-bg: card color and page background.
  • --npc-radius: corner radius of the card and its glow.
  • data-count on .npc-followers: the starting follower number used by the script.

Use cases

  • Team pages: each member gets a dark card with a spinning neon border, skill tags and a follow button
  • Creator and influencer profiles: stats for posts, followers and likes sit under a short bio
  • Blog author boxes: a compact card shows the writer's role, bio and social icon links
  • Community directories: a grid of cards where each follow toggle updates its own follower count

Accessibility

The card is an article labelled by its name heading, and the stats use a description list so each number is read with its label. The Follow control is a real button with aria-pressed, so screen readers announce it as a toggle. Icon-only social links have an aria-label, and decorative SVGs and the avatar are aria-hidden. Buttons and links show a cyan focus outline. Text colors are chosen for strong contrast on the dark surface. With prefers-reduced-motion: reduce the border stops spinning and stays at a fixed angle.

Usage notes

Several cards can sit on one page, for example in a grid; each .npc-card is wired up on its own. Give every name heading a unique id.

Neon Glow Profile Card at a glance

Framework
Pure CSS
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
None
Layout
Responsive, works on mobile, dark design
Category
Profile Cards
License
Free for personal and commercial use

Questions about this template

Can I use the Neon Glow Profile Card code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

There is nothing to install. Paste the HTML where the component should appear, add the CSS to your stylesheet and load the JavaScript before the closing </body> tag. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. The script is plain vanilla JavaScript, so it works without jQuery, React or Vue. You can still use the markup inside those frameworks.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

No dependencies. Pure HTML, CSS and JavaScript.

Neon Glow Profile Card – free Pure CSS profile card template
Neon Glow Profile Card · free Pure CSS profile card template

More Profile Cards

Business Card Style Contact Card – free Bootstrap 5 profile card template

Business Card Style Contact Card

Bootstrap 5 digital business card with portrait, role, tap-to-call contact links, copy buttons, a QR code and a downloadable vCard.

Profile Card with Animated Photo Border – free Pure CSS profile card template

Profile Card with Animated Photo Border

Dark pure CSS profile card whose round portrait sits in a spinning conic-gradient ring with a soft glow, plus stats and a follow toggle.

Profile Card with Stats – free Bootstrap 5 profile card template

Profile Card with Stats

Bootstrap 5 user profile card with gradient cover, initials avatar, animated stat counters, follow toggle, message and copy-link buttons.

Profile Card with Cover – free Tailwind CSS profile card template

Profile Card with Cover

Tailwind CSS profile card with a gradient cover, overlapping avatar, verified badge, bio, skill chips, stats and an accessible follow toggle.