If you want to make something like that, for a website, I'd suggest to look for two things :
=> google on jquery and study some tutorials. That's quite easy.
It seems interesting to explore...
Just have a look, pick and have fun building your site !!