Fixed issue where black lines appear when page transition animates