Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Animated Glowing Border - Easy to Customize CSS Effect

Kevin Powell via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn how to create an animated glowing border effect using CSS in this 50-minute tutorial. Inspired by a Dribbble shot, explore techniques for adding SVG elements, positioning with CSS, and creating glowing segments using dasharray and dashoffset. Master border radius matching, blur effects, and hover interactions to enhance button designs. Discover ways to customize line lengths, create solid line variations, and implement offset effects. Perfect for web developers looking to add eye-catching, easily customizable CSS animations to their projects.

Syllabus

- Introduction
- What we’re starting with
- Adding the SVG for this effect
- CSS to get the SVG in position
- Using dasharray on the SVG to create the gowing segments
- Using dashoffet to move the segments
- Matching the border radius using rx
- Adding the blur and making the SVG bigger to see the glow
- Repositioning the lines on top of the button
- Fixing the hover so it’s only on the button itself
- Improving the glows
- Adding the fade/in out on the glows
- Customizing the line lengths
- Creating solid line variation
- Creating an offset variation
- Fixing the rx / border-radius

Taught by

Kevin Powell

Reviews

Start your review of Animated Glowing Border - Easy to Customize CSS Effect

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.