Transition()
Syntax: _Transition(AnyObject_Name, transition_tag, transitions, x, y, time, delay, xScale, yScale, rotation, iterations, onRepeat_function, onComplete_function)
Purpose: Applies one or more animated transitions to a specified object. Provides a rich way to make objects move, fade, scale, or rotate.
Parameters:
AnyObject_Name: (string) Name of the object to apply the transition to.
transition_tag: (string) A unique label for this transition, used for cancelling or modifying it later.
transitions: (string) The type of transition. See list below.
x, y (numeric, optional): Target coordinates for movement.
time (numeric, optional, default=1000): Transition duration in milliseconds.
delay (numeric, optional, default=0): Delay before starting the transition (milliseconds).
xScale, yScale (numeric, optional, default=1): Scaling factors for the X and Y axes.
rotation (numeric, optional, default=0): Target rotation angle in degrees.
iterations (numeric, optional, default=1): How many times to repeat the transition.
onRepeat_function (string, optional): Name of a function to call each time the transition repeats.
onComplete_function (string, optional): Name of a function to call when the transition finishes.
Available Transitions:
blink: Creates a flashing effect.
moveTo: Moves the object to absolute coordinates.
moveBy: Moves the object by a relative amount.
fadeIn: Fades the object in (increases opacity).
fadeOut: Fades the object out (decreases opacity)
scaleTo: Scales the object to specified dimensions.
scaleBy: Scales the object by a relative factor.
rotation: Rotates the object.
Easing:
Transition easing controls the speed change within the animation
(e.g., linear, ease-in, ease-out). You can set a default easing
method with _default_transition_easing_
.
Accepts Wildcards: Yes
Transition_Cancel()
Syntax: _Transition_Cancel(transition_tag)
Purpose: Stops any running transitions associated with the specified transition tag.
Transition_Dissolve_Image()
Syntax: _Transition_Dissolve_Image(ImageName1, ImageName2, time, delay)
Purpose: Creates a dissolve effect, seamlessly transitioning from one image to another.
Parameters:
ImageName1, ImageName2: (strings) The names of the images involved in the transition.
time: (numeric) Transition duration in milliseconds.
delay: (numeric) Delay before starting the transition (milliseconds).
Transition_Pause()
Syntax: _Transition_Pause(transition_tag)
Purpose: Pauses all running transitions associated with the specified transition tag.
Transition_Resume()
Syntax: _Transition_Resume(transition_tag)
Purpose: Resumes any paused transitions associated with the specified transition tag.
Let me know if you'd like to see some practical examples of how to chain transitions or use them with easing functions!