Try using opacity 0 instead of visibility hidden to avoid conflicts with visibility.