Examples of animating with code