Learning by animating