Added some basic "bounce" animation handling. Needs more work, but it's a decent starting point.