O'Reilly logo

Programming Atlas by Christian Wenz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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) ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required