In this chapter, we'll be touching base with transition.to()
and transition.from()
.
transition.to()
: It animates a display object's properties over time using theeasing
transitions.Syntax:
handle = transition.to( target, params )
transition.from()
: It is similar totransition.to()
except 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.Syntax:
handle = transition.from( target, params )
The parameters used are:
target
- A display object that will be the target of the transition.params-
params.time
: It specifies the duration of the transition in milliseconds. By default, the duration is 500 ms (0.5 seconds).params.transition
: It is by defaulteasing.linear
.params.delay
: It specifies the delay, in milliseconds, (none...