on https://matthias-research.github.io/pages/tenMinutePhysics/ you will find a series of small physics simulations, starting with bouncing balls, up to simulating a fire
the code is a little old-school as it still uses var a lot, but apart from that it is a very interesting read, as it demonstrates how much can be done with a lines of code