How this transition mask where created?

I am building a site where I am going to have the background change with each section. I want to do just like this site How do you make the transition? Where the section that you want to load always loads over the last one?

Thanks