added example/howto code for animating