April 2018
Beginner
714 pages
18h 21m
English
Let's add vertical movement (animation of the y property) to our sun by adding a sequence of animations to the QML document. As our new animations will be running in parallel to the horizontal animation, we can enclose animations for both directions within a single ParallelAnimation group. It would work, but in our opinion, this will unnecessarily clutter the document. Another way of specifying parallel animations is to declare them as separate hierarchies of elements, making each animation independent of the other, and that is what we will do here.
Open our document from the last exercise, and right under the previous animation, place the following code:
SequentialAnimation { running: true NumberAnimation ...Read now
Unlock full access