add support for getting shared animation from config. add support for resetting animation states.