No JavaScript, just keyframes
Or try the physics playground: drop, grab and throw balls, and change the gravity.
CSS animation for a bouncing ball (based on article from The Art of Web).
Cast in shadow, falls,
Strikes the floor and leaps again,
Darkness on the bounce.
Strikes the floor and leaps again,
Darkness on the bounce.
Code: evoluteur/bouncing-ball at GitHub.
© 2020–2026
Olivier Giulieri