effects/fullscreen: Prevent playing animation for invisible windows
It makes no sense to play the animation if the window is invisible. It can also produce unexpected results if the window is not on current virtual desktop as animate() will temporarily force the window to be visible.
See also !3018 (merged)