-
I'm trying to achieve an animation such that when a click is happening the view will expand to the right/end while the start will stay in place. ATM it seems like it's anchored from the center of the view and thus expand both ways like in the video. Is there a way to achieve what I described? Screen.Recording.2025-04-02.at.20.10.20.mov |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Without seeing sample code and knowing how it's laid out, what it's parents are etc, it might be difficult to check. I havent tried this yet, but one possibility is to animate the width and x position at the same time. |
Beta Was this translation helpful? Give feedback.
-
So I've created a few examples since you didn't give much details: This first slintpad link shows pretty much what you are seeing, the rectangle is in a Horizontal Layout set to center, so it's anchored to center The second slintpad link the Horizontal layout is set to start, and the rectangle grows to the right. Third slintpad link doesn't use a horizontal layout, rectangle starts on the left and expands right. Fourth slintpad link No Horizontal layout, location is manually centered, and expands right. It sounds like the fourth link example is probably what you are after, but without knowing your layout I can't say. Perhaps you are using a Horizontal Layout, and want it anchored left so it expands right without having to manually center it. If that is the case, and you want it centered in a Horizontal Layout, but anchored on the left...I don't know of a way to do that at the moment. Perhaps someone else might know another way to do this. |
Beta Was this translation helpful? Give feedback.
So I've created a few examples since you didn't give much details:
This first slintpad link shows pretty much what you are seeing, the rectangle is in a Horizontal Layout set to center, so it's anchored to center
The second slintpad link the Horizontal layout is set to start, and the rectangle grows to the right.
Third slintpad link doesn't use a horizontal layout, rectangle starts on the left and expands right.
Fourth slintpad link No Horizontal layout, location is manually centered, and expands right.
It sounds like the fourth link example is probably what you are after, but without knowing your layout I can't say. Perhaps you are using a Horizontal Layout, and want it anchored left so…