Skip to content

Commit

Permalink
bounce animation
Browse files Browse the repository at this point in the history
  • Loading branch information
juleanrod committed Apr 20, 2022
2 parents 8bbdfcd + e2203f2 commit 207262b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ch18/bouncing-ball/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ function rotateAnimation(id, speed) {
//once start button is clicked, call the rotate animation
//and also enable the stop button
document.getElementById('start').addEventListener('click', start);
document.getElementById('stop').addEventListener('click', stop);


function start() {
Expand Down Expand Up @@ -47,4 +48,4 @@ function start() {

}

}
}

0 comments on commit 207262b

Please sign in to comment.