Glowing Navigation Menu
This component demonstrates a stylish glowing navigation menu using pure HTML and CSS, featuring:
- Neon glow hover animation
- Text stroke + reveal effect
- CSS variables for dynamic colors
- Smooth transitions with modern UI feel
- Fully responsive and lightweight
Code
Explanation of the Code
HTML & CSS
Simple semantic structure using <ul> and <li>for navigation.
Google Font Mochiy Pop One gives a playful, bold appearance.
Centered layout using Flexbox for perfect alignment.
Glowing Text Effect
Text is initially transparent with a white stroke using -webkit-text-stroke.
The glowing color is revealed using the ::before pseudo-element.
width: 0 → 100% animation creates a smooth text-reveal effect.
CSS Variables
Each menu item defines its own color using --clr.
Allows easy customization without modifying CSS rules.
Hover Animation
Border-right simulates a typing cursor effect.
drop-shadow() adds neon glow on hover.
Smooth transition: 1s for premium UI feel.
Responsive Behavior
Font scales naturally on different screen sizes.
CSS code
No JavaScript required — lightweight and performant.
