Posted in
4155
5:53 am, January 10, 2022
Add an Animated Gradient Border to any Element with CSS
Here is kinda a cool border gradient animated effect, spinning the background element using the rotate keyframes animation.
Add an Animated Gradient Border to any Element with CSS Demo
View Demo Full Screen View Demo New Tab
Add an Animated Gradient Border to any Element with CSS Code
HTML
<div class="cssbundle-border"></div>
CSS
div.cssbundle-border {
width: 450px;
height: 250px;
box-shadow: 16px 14px 20px #0000008c;
border-radius: 10px;
position: relative;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
}
div.cssbundle-border::before{
content: "";
background-image: conic-gradient(
#7938ff 20deg,
transparent 120deg
);
width: 150%;
height: 150%;
position: absolute;
animation: rotate 2s linear infinite;
}
div.cssbundle-border::after{
content: "CSSBundle.com";
width: 440px;
height: 240px;
background: #101010;
position: absolute;
border-radius: 10px;
display: flex;
justify-content: center;
align-items: center;
color: #7938ff;
font-size: larger;
letter-spacing: 5px;
box-shadow: inset 20px 20px 20px #0000008c;
}
@keyframes rotate {
0%{
transform: rotate(0deg);
}
100%{
transform: rotate(-360deg);
}
}
Add Comment
Other Items in css animated
Related Search Terms
Other Categories in Code
404 pages animation animations background effects boxes buttons css css & javascript css animation css animations css backgrounds css cursors css framework css frameworks css modal css positions css reset css shadows css slider css text effects css text formatting css tips css tools css z-index content slider cookie alerts design html css sections html canvas html sections icons image zoom interactive images lightbox link effects loading animation modals mouse effects navigation notifications parallax profiles quick css seo sections text ui web developer checklists animations backgrounds bootstrap buttons css css animated css animations css framework css grid footers forms html image effects images javascript scroll effects sections show your work svg text animation timeline
css animations
css animations
HTML Canvas
javascript