If another player gains control of your graveyard, Animate Graveyard will be put its owner's graveyard. This immediately causes your graveyard to stop being a creature and return to just being your graveyard.