Fade out and fade in bteween scenes or movie clips

I’m a beginner and doing some experiments. Can anybody help me to explain how we make a fade out and in effect to whole thing when we click on a button? Your kind help in this topic is highly appreciated.