backgrounds
Posted in
3564
1:13 am, September 9, 2021
Pure CSS Background Element not on Body
this is a re-usable version of the animated css background element, so you can add this somewhere else rather than the body tag on your page.
Pure CSS Background Element not on Body Demo
View Demo Full Screen View Demo New Tab
Pure CSS Background Element not on Body Code
HTML
<div class='animated-bg'>My Custom Element with the class animated-bg</div>
CSS
.animated-bg {
background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
background-size: 400% 400%;
animation: gradient 15s ease infinite;
height: 400px;
width:100%;
}
@keyframes gradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
Related Tags
Add Comment
Other Items in backgrounds
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