This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.
Hi,
I have some very basic animation requirement. I am new so facing problem with Kony APIs.
I want to move 2 flex containers at same time on press of left right arrow. First will move and second will take its place . I tried with below solution using Kony MVC, but moving a small distance also moving the container to long distance. Need help in fixing this ?
Please check attached image. On Before screen you can see two containers. On Animation first Black container should move -120dp (want to move from Right to Left) and second purple container should move -20 dp. When it animated second container moving loner distance than -20dp. Please check After image.
You can create sample app in kony 7.3 and project using Kony Reference Architecture. Can try similar thing.
The " kony.ui.createAnimation" API work on Absolute positions wrt the screen. I suppose you are looking into animations with relative to the initial position of the widget for which you will have to try using > "kony.ui.makeAffineTransform".
For more info on Transform Animations check this: http://docs.kony.com/konyonpremises/Subsystems/Widget_User_Guide/Content/Widget_Level_Animations/Widget_animatable_properties.htm#kony.ui.2
Second container is not only moving longer distance but moving faster too. Also how to move the container towards right ? It has only move left direction.