As a beginner HTML5 developer, I have been exploring ways to create an animated image using multiple jpg files stored in a specific folder on my website. My goal is to design an animation of a rabbit running across the page when a user clicks on a button.
I have come across libraries that allow me to move images but what I really need is a way to change the images as the rabbit moves within a div on the webpage.
In my 'imgs/' folder, I have the following rabbit images: rabbit-image1.jpg, rabbit-image2.jpg, rabbit-image3.jpg, rabbit-image4.jpg, rabbit-image5.jpg, and rabbit-image6.jpg.
When moving the rabbit from one point to another on the page, I want the images to loop seamlessly until the rabbit reaches its final position, creating the illusion of a running motion.
Any suggestions or tips would be greatly appreciated. Thank you!