Bouncing Ball
HTML / CSS
10 pts
Bouncing Ball
Make the blue ball bounce forever.
- Create
@keyframes bouncewith three steps:0%transform: translateY(0);,50%transform: translateY(-60px);and100%transform: translateY(0); - Give
.ballthe animationbounce, duration 1s, timing functionease-in-out, repeating infinite times.
Checklist
- Write
@keyframes bouncewith 0%, 50% and 100% steps. - Play
bounceon.ballfor 1s, forever.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
