added a 3D animation method to UIView