Hello everyone, I’m setting a picture that keeps scaling up and down. My code works just fine but the thing is there are a few marks that appear beside my picture on its right side after it scaled back to its original size. I found out that the problem only occurs when I use any photo that I search on Google because I’ve tried a couple of images on Pixabay but nothing happened. Can anyone help me, please? Thank you!
my image link(Mr. Donald Knuth’s photo on Wikipedia) that I want to use:
https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS9FK9YRJCeVcXiE_ed-TjH-m947VjAJgl65Q&usqp=CAU
Here below is my code:
#image {
max-width: 330px;
width: 100%;
display: block;
animation-name: in-and-out;
animation-duration: 2s;
animation-iteration-count: infinite;
}
@keyframes in-and-out{
50%{
transform: scale(1.1);
}
}