In this chapter, we'll be touching base with transition.to()
and transition.from()
:
transition.to()
: This animates a display object's properties over time using theeasing
transitions.The syntax is
handle = transition.to( target, params )
.transition.from()
: This is similar totransition.to()
except that the starting property values are specified in the function's parameter table, and the final values are the corresponding property values in the target prior to the call. The syntax ishandle = transition.from( target, params )
.The parameters used are as follows:
target
: This is a display object that will be the target of the transition.params
: This is a table that specifies the properties of the display object, which will be animated, and one or more of the following optional non-animated properties:params.time
: This specifies the duration of the transition in milliseconds. By default, the duration is 500 ms (0.5 seconds).params.transition
: This is by defaulteasing.linear...