Animations

In the AtlasUIGlitz.js library, Atlas implements several animations, which are described in greater detail in Chapter 7.

Sys.UI.Animation (General Class)

Method

Description

get_duration()

Returns the duration of the animation

set_duration(value)

Sets the duration of the animation

get_fps()

Returns the frames per second of the animation

set_fps(value)

Sets the frames per second of the animation

get_isActive()

Whether the animation is currently active or not

get_isPlaying()

Whether the animation is currently playing or not

get_percentComplete()

Percentage how much of the animation has been completed

get_target()

Returns the target element of the animation

set_target(value)

Sets the target element of the animation

GetAnimatedValue()

Returns the value that is animated in the animation (abstract method)

onStart()

Gets executed when the animation starts

onEnd()

Gets executed when the animation ends

onStep()

Gets executed with every step of the animation

play()

Starts/continues the animation

pause()

Pauses the animation

stop()

Stops the animation

setOwner()

Sets the owner of the animation

setValue()

Sets the animation value (abstract method)

Sys.UI.PropertyAnimation

Method

Description

get_property()

Returns the property to animate

set_property(value)

Sets the property to animate

get_propertyKey()

Returns the key of the property to animate

set_propertyKey(value) ...

Get Programming Atlas now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.