Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.
Visual bug. http://replay.pokemonshowdown.com/ou-128799739
On turn 13 I switch my Yanmega in, it takes Stealth Rock damage, faints and it's sprite disappears. Then after my opponent attacks, the Yanmega sprite comes back and sticks around for the rest of the battle behind my active pokémon.