3D Transforms - rotateY

Exercise in Javascript and CSS

The buttons onclick to a js function which either adds or removes a css class containing the transform

Anybody here
There is also a transition effect built in for good measure