3D rotation and animation with CSS