Summary
In summary, through creating this project, we’ve accomplished quite a bit. As before, you saw how to create separate files – in this case, gears and chains – how to make a marching ants effect, how to combine everything into ContentView
, and how to organize the code neatly using Pragma Marks and Groups. You also learned how to animate objects on all three axes, x-, y-, and z-, and saw how to use zIndex
to place views more dynamically, from back to front, and vice versa.
In the next project, we will look at animating a flower and its petals so that it appears to be breathing, and creating some snow in the background.