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

YouTube

Creating a Rotating Gradient Border Effect with CSS

Kevin Powell via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn to recreate an advanced CSS effect featuring a rotating, blurred gradient border with inner glow in this 23-minute tutorial video. Master techniques for implementing conic gradients, custom property animation, pseudo-elements, and masking through step-by-step guidance. Follow along to understand the process of setting up the initial div structure, creating and animating gradients using custom properties, troubleshooting mask implementations, working with multiple linear gradients, and exploring alternative approaches using border-image. Based on Ana Tudor's original design, discover practical solutions for common implementation challenges while building this eye-catching visual effect.

Syllabus

- Introduction
- Setting things up
- Adding a conic gradient to the div
- Adding a custom property to animate the gradient
- Registering the custom property to animate it
- Moving the gradient to a pseudo-element
- Struggling to add a mask
- Getting the mask to work
- Trying multiple linear gradients
- Figuring out the problem with the trailing comma
- Looking at Ana’s solution which uses border-image

Taught by

Kevin Powell

Reviews

Start your review of Creating a Rotating Gradient Border Effect with CSS

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.