Animation

Animation can be carried out by using the animation syntax. All the CSS properties that you want changed to are past in an object as the first parameter, and the time you want it to take to 'animate' is passed in the second parameter

Excercise #1

In the first excercise we will increase the size of a circle by 100% (after you click it), and make it move by changing its margins, and change the background color from green to red (using callback functions). Once the circle has been animated, you can click it again to shrink it.