Onmouse tags

in regards to this site:
the-raft.com

what makes the top animation work when you click on the buttons “artists”, “music”, etc" and when you click on them, the images rotate back and forth?

Also, how does the images close when you view the info underneath?

I would really like someone to help me out with this in regards to the mentioned website, thanks.