I find the answer myself the reason for why it does not work is because skeletal mesh is attached to spring arm but I have to attach sk mesh to spring arm so inside the details in spring arm under the camera settings there is a checkbox named Inherit Pitch if I close that pitch in anim bp works great so I write a code to close Inherit pitch option when I zoom and re-enable it when zoom ends