I have this project where I need to make a animation where I have a bucket and a ball throwing into the bucket so you can see the ball go inside this bucket. In order for this to work, I have 2 pictures of the same bucket. Number 1 is for the back, and nr. 2 is for the front, I had an idea to use background-image: cover but I cannot figure out how to make this work, heres an illustration

This is mmy progress so far with other bucket picture:

.back {
background-size: cover;
}
.front {
}
<div class="back"> <img src="behind.png" ></div>
<div class="front"> <img src="infront.png" ></div>
