https://thegioigiaitri69.blogspot.com/2024/08/animating-images-with-javascript.html
Animating Images With Javascript