Flipping Animation Direction

Hey, i was wondering if it’s possible to flip the direction of an animation?

In my case i have a search icon with a search input field next to it. I’m using a frame with clip content to hide the search input field and when i click the search icon the frame expands revealing the search input field.

Problem is that frame expands to the right side when i want it to expand towards the left.

Animation expand