3D Transforms - rotateX

Exercise in Javascript and CSS

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

In this instance the rotation takes place about the X axis

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