How did they do this kind of effect

http://www.itcatmedia.com/school/

go between sections, and watch the transitions, how the page kind turns and unmasks the site. How would they mask like that? A mask that kind of shape and with it having a Border>