At first glance this looks like a simple flash animation, that is far from the truth. All of the animation is calculated using trigonometry calculations.