Make an animated glowing border effect with CSS @KevinPowell
Make an animated glowing border effect with CSS  @KevinPowell
Uploaded June 2025 | Updated November 2026, 3 hours ago
I was recently asked about creating the glowing border effect from Google's AI Mode, and it sounded like a fun challenge, so here's how I did it!

πŸ”— Links
βœ… Finished code: codepen.io/kevinpowell/pen/WbbXRPL??editors=1100
βœ… The site where I got the effect: https://search.google/ways-to-search/ai-mode/

kevinpowell.co/courses

⌚ Timestamps
00:00 - Introduction
00:30 - the HTML and starting CSS
01:30 - Setting up the border
06:48 - Faking a transparent background
09:00 - Adding the outer glow
13:20 - Making the inner glow
16:55 - Tweaking the values of the blur
18:18 - Adding custom properties
20:07 - Flipping it to the other side
22:25 - Improving and customizing the gradient
24:30 - Animating the gradient and glow by changing the colors
27:35 - An easier way to animate it

#css

βœ‰ Keep up to date with everything I'm up to kevinpowell.co/newsletter
πŸ’¬ Come hang out with other devs in my Discord Community discord.gg/nTYCvrK
⭐ Are you a beginner? HTML & CSS for absolute beginners is for you: learn.kevinpowell.co
πŸŽ“ Start writing CSS with confidence with CSS Demystified: [https://cssdemystified.com](https://cssdemystified.com/)
πŸš€ Already mastered CSS? Check out my advanced course, Beyond CSS: https://www.beyondcss.dev/

---

Help support my channel
πŸ‘¨β€πŸŽ“ Get a course: kevinpowell.co/courses
πŸ‘• Buy a shirt: cottonbureau.com/people/kevin-powell
πŸ’– Support me on Patreon: patreon.com/kevinpowell or through YT memberships: youtube.com/@KevinPowell/join

---

πŸ§‘β€πŸ’» My editor: VS Code - code.visualstudio.com

🌈 My theme: One Dark Pro Var Night
πŸ”€ My font: Cascadia Code

---

I'm on some other places on the internet too!

If you'd like a behind the scenes and previews of what's coming up on my YouTube channel:

Bluesky: https://bsky.app/profile/kevinpowell.co
Codepen: codepen.io/kevinpowell
Github: github.com/kevin-powell

---

And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!
Make an animated glowing border effect with CSSBuild bulletproof color systems5 CSS fouls that I see way too oftenStop wasting time with JavaScript!Open VS Code in the browser with one keystrokeTransition to and from display: noneYou can do more with 2 colors in CSS than you might have thoughtStop fighting with CSSThe MOST ANNOYING thing about CSSLevel up your responsive typeBetter CSS gradients with this quick fixisolate to the rescue
Kevin Powell |

Make an animated glowing border effect with CSS

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER