How to make a 3D UI animation?

Hi everyone,
I’m new to unreal. I’m working on a simple demo where you can interact with a 3D widget in VR. When I click on a button or any part of the widget, I want to translate that component on the X-axis ( closer or further to you ). Is there a way to create this animation without breaking all the components to separate widgets?
Appreciate you all! Thank you!