Fix for render issues during transition on Chrome and Safari