Animation controlled by code

Animation controlled by code.  State changes through code.