Button animation

What I’ve been searching to do is when you click on a button it closes that page out and then goes to another. Here is an example of what it looks like that I would like to accomplish

http://www.fizzylizzy.com/

Any help I would really appreciate it