Coding Challenge: Bouncing Ball

Test your skills to add animations in this JavaScript to make this ball bounce!

We'll cover the following

Problem statement

The goal of this exercise is to make a basketball move across the screen. You can download the ball image from here. Start with the following HTML and CSS content and write the JavaScript code that makes the ball bounce horizontally.

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy