Help with transition

Hey guys! I was wondering if you could help me. How do they do that transition where the screen fades to black and from black to the original screen? Any help would be appreciated…thanks!