So if you follow along in the video, I refer to this blog post for you to enter code at certain points, so below is everything you will need!
Alternatively
You can download the complete template here
The Following code goes into the Container called “Card Border Strip” :
selector {
--glowing-color: white;
--rotation-speed : 5s;
justify-content: center; /* Centers the child horizontally */
align-items: center; /* Centers the child vertically */
}
selector .gradient-border {
position: absolute; /* Make the gradient-border container absolute */
width: 2300px; /* Set the width */
height: 2300px; /* Set the height to the same value for a square */
overflow: hidden; /* Prevents content overflow */
}
selector .gradient-border::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: conic-gradient(var(--glowing-color) 2% ,transparent 8%,transparent 92%, var(--glowing-color) 98%); /* Gradient */
border-radius: 50%; /* This makes the gradient border round */
z-index: -1; /* Makes sure it sits behind the content */
animation: rotate-gradient var(--rotation-speed) linear infinite; /* Smooth rotation of the gradient */
}
/* Keyframes for rotating the gradient */
@keyframes rotate-gradient {
0% {
transform: rotate(0deg); /* Start at 0 degrees */
}
100% {
transform: rotate(360deg); /* Rotate the gradient 360 degrees */
}
}