This is an example of how to animate window resizing. The size is animated by a simple physics model that allows the user to cancel the animation halfway and still look good.