Does anyone know how to animate an image to jump across the screen of home screen using html, css? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Does anyone know how to animate an image to jump across the screen of home screen using html, css?

How to animate an image character?

2nd Jan 2020, 6:38 PM
Shawn Wright
Shawn Wright - avatar
5 Answers
+ 3
What exactly do you mean by "jump across" ?
2nd Jan 2020, 6:47 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 2
Kornmeal you don't need jQuery for this, you can do it with CSS3 only. Is the animation only going to happen once, when the webpage loads ?
2nd Jan 2020, 7:51 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 1
Aymane Boukrouh I have an image say 60px or so and I want to simulate character going across screen as if jumping up say starting left side of screen then to the right going down slightly and back up even further to right side of screen and so on till he or image is across the screen and perhaps even when image reaches right side of screen completely does same appearance of motion coming back to left side of screen. I found a stackoverflow example which links to fiddle where someone moves the letter B across screen and back using jQuery but that code does not work when I copy it. Of course it's not going up and down but a similar premise is why I bring it up.
2nd Jan 2020, 7:36 PM
Shawn Wright
Shawn Wright - avatar
+ 1
Aymane Boukrouh also to be clear this is not for a game or anything Just a website homescreen with HTML, CSS and whatever else needed ie(bootstrap or jQuery)
2nd Jan 2020, 7:39 PM
Shawn Wright
Shawn Wright - avatar