Hi i was playing around with some animations and was wondering if it was possible to have different elements navigate to a separate page and have animations applied to the clicked element?
Description:
Im using a Navigator to set up 2 pages and navigations between them. Following is my Main.ux
in my page one I have defined 2 circles that when clicked will navigate to the next page. I have placed a scale animation to scale the circle to full screen like the login example found in the docs.
to apply anything to something that has been clicked, you have to… apply the anything to the something. Or something along those lines.
Anyway, here’s the thing. The Transition element matches page-wide transforms semantically better and I would argue that the scaling of your circles should not be semantically linked to a “transition to another page”. The scaling is triggered by the click and that’s all the circles should care about; they don’t need to know where you’re transitioning to.
With that in mind, I moved your Scale and Change triggers inside of a Clicked trigger, inside of the MyCircle UX class. Now they animate the instance you click, and that animation does not depend on any target page or a transition.