@Locoweed thank you for helping

@Random Thank you but this is not what I want. I don't want an entity to fade in and out ,I want the whole screen (e.g. a white flash that increases ,and when reaching some maximum ,it decreases gradually)