How to slide an UI Panel in unity 5?

I have to slide a Panel from left to right direction in Unity 5, after clicking a button but I do not know how to implement that. I just currently use enable/disable for hide and show the Panel but I only want to slide the Panel whenever the button being pressed.
Please can anyone help me? Any help would be appreciated. :slight_smile:

Thanks in advance,
Shraddha

Thanks for your reply…!
But is there any way that can be done by a line of code?

You could get the rect component and then change its values over time.

RectTransform uitransform = [GameObject uiObject].GetComponent();
uitransform.anchoredPosition.x = [value];