Using that codepen snippet that you provided in the question, just change the property background
tag <body>
to include an image, instead of the blue color that is now.
body {
background: url('http://lorempixel.com/200/200/abstract')/* única alteração. */
}
.circle {
position: absolute;
border-radius: 50%;
background: white;
animation: ripple 15s infinite;
box-shadow: 0px 0px 1px 0px #508fb9;
}
.small {
width: 200px;
height: 200px;
left: -100px;
bottom: -100px;
}
.medium {
width: 400px;
height: 400px;
left: -200px;
bottom: -200px;
}
.large {
width: 600px;
height: 600px;
left: -300px;
bottom: -300px;
}
.xlarge {
width: 800px;
height: 800px;
left: -400px;
bottom: -400px;
}
.xxlarge {
width: 1000px;
height: 1000px;
left: -500px;
bottom: -500px;
}
.shade1 {
opacity: 0.2;
}
.shade2 {
opacity: 0.5;
}
.shade3 {
opacity: 0.7;
}
.shade4 {
opacity: 0.8;
}
.shade5 {
opacity: 0.9;
}
@keyframes ripple {
0% {
transform: scale(0.8);
}
50% {
transform: scale(1.2);
}
100% {
transform: scale(0.8);
}
}
<div class='ripple-background'>
<div class='circle xxlarge shade1'></div>
<div class='circle xlarge shade2'></div>
<div class='circle large shade3'></div>
<div class='circle mediun shade4'></div>
<div class='circle small shade5'></div>
</div>
Cara edits your question and puts what you already have of code there. Another thing, I don’t quite understand what you want, has an image of the layout you want? You that shape over an image in the background? Place your HTML and CSS that you have so far
– hugocsl
Actually, it’s not "animated background". It’s an animated object like any other. Then you just position it wherever you want. Whether it’s background or not. Plus @hugocsl has already described what you need to do...
– LipESprY
I didn’t do anything because I don’t know where to start
– Ricardo Gonçalves
@Lipespry actually can be an "animated background" yes! After a look at the answer I left
– hugocsl
@hugocsl I told you I don’t underestimate you, right?! Kkkk
– LipESprY
@Lipespry Stackoverflow is where you can do everything you don’t have a chance to do on other rss projects... But soon you can exercise a lot around here!
– hugocsl
@hugocsl I confess that it has been more didactic to solve the problems here than many courses and tutorials I see around! Kkkkk
– LipESprY