dojox/fx/ext-dojo/reverse (version 1.10)

Summary

A generic animation class that fires callbacks into its handlers object at various states.

A generic animation class that fires callbacks into its handlers object at various states. Nearly all dojo animation functions return an instance of this method, usually without calling the .play() method beforehand. Therefore, you will likely need to call .play() on instances of Animation when one is returned.

Parameter Type Description
args Object

The 'magic argument', mixing all the properties into this animation instance.

See the dojox/fx/ext-dojo/reverse reference documentation for more information.

Property Summary

  • _percent
  • _reversed
  • _startRepeatCount
  • beforeBeginSynthetic event fired before a Animation begins playing (synchronous)
  • curveA two element array of start and end values, or a _Line instance to be used in the Animation.
  • curve
  • delayThe time in milliseconds to wait before starting animation after it has been .play()'ed
  • durationThe time in milliseconds the animation will take to run
  • easingA Function to adjust the acceleration (or deceleration) of the progress across a _Line
  • onAnimateSynthetic event fired at each interval of the Animation
  • onBeginSynthetic event fired as a Animation begins playing (useful?)
  • onEndSynthetic event fired after the final frame of the Animation
  • onPauseSynthetic event fired when the Animation is paused
  • onPlaySynthetic event fired any time the Animation is play()'ed
  • onStopSynthetic event fires when the Animation is stopped
  • ratethe time in milliseconds to wait before advancing to next frame (used as a fps timer: 1000/rate = fps)
  • repeatThe number of times to loop the animation

Method Summary

  • _clearTimer() Clear the play delay timer
  • _cycle()
  • _fire(evt,args) Convenience function.
  • _getStep()
  • _play(gotoStart)
  • _startTimer()
  • _stopTimer()
  • destroy() cleanup the animation
  • gotoPercent(percent,andPlay) Sets the progress of the animation.
  • pause() Pauses a running animation.
  • play(delay,gotoStart) Start the animation.
  • reverse(keepPaused,reverseEase) The key method added to an animation to enable reversal.
  • status() Returns a string token representation of the status of the animation, one of: "paused", "playing", "stopped"
  • stop(gotoEnd) Stops a running animation.

Properties

_percent
Defined by: dojo/_base/fx
_reversed
_startRepeatCount
Defined by: dojo/_base/fx
beforeBegin
Defined by: dojo/_base/fx

Synthetic event fired before a Animation begins playing (synchronous)

curve
Defined by: dojo/_base/fx

A two element array of start and end values, or a _Line instance to be used in the Animation.

curve
Defined by: dojo/_base/fx
delay
Defined by: dojo/_base/fx

The time in milliseconds to wait before starting animation after it has been .play()'ed

duration
Defined by: dojo/_base/fx

The time in milliseconds the animation will take to run

easing
Defined by: dojo/_base/fx

A Function to adjust the acceleration (or deceleration) of the progress across a _Line

onAnimate
Defined by: dojo/_base/fx

Synthetic event fired at each interval of the Animation

onBegin
Defined by: dojo/_base/fx

Synthetic event fired as a Animation begins playing (useful?)

onEnd
Defined by: dojo/_base/fx

Synthetic event fired after the final frame of the Animation

onPause
Defined by: dojo/_base/fx

Synthetic event fired when the Animation is paused

onPlay
Defined by: dojo/_base/fx

Synthetic event fired any time the Animation is play()'ed

onStop
Defined by: dojo/_base/fx

Synthetic event fires when the Animation is stopped

rate
Defined by: dojo/_base/fx

the time in milliseconds to wait before advancing to next frame (used as a fps timer: 1000/rate = fps)

repeat
Defined by: dojo/_base/fx

The number of times to loop the animation

Methods

_clearTimer()
Defined by dojo/_base/fx

Clear the play delay timer

_cycle()
Defined by dojo/_base/fx
Returns:function
_fire(evt,args)
Defined by dojo/_base/fx

Convenience function. Fire event "evt" and pass it the arguments specified in "args".

Convenience function. Fire event "evt" and pass it the arguments specified in "args". Fires the callback in the scope of this Animation instance.

Parameter Type Description
evt Event

The event to fire.

args Array
Optional

The arguments to pass to the event.

Returns:function

Convenience function. Fire event "evt" and pass it the arguments specified in "args".

_getStep()
Defined by dojo/_base/fx
Returns:undefined
_play(gotoStart)
Defined by dojo/_base/fx
Parameter Type Description
gotoStart undefined
Returns:function
_startTimer()
Defined by dojo/_base/fx
_stopTimer()
Defined by dojo/_base/fx
destroy()
Defined by dojo/_base/fx

cleanup the animation

gotoPercent(percent,andPlay)
Defined by dojo/_base/fx

Sets the progress of the animation.

Parameter Type Description
percent Decimal

A percentage in decimal notation (between and including 0.0 and 1.0).

andPlay Boolean
Optional

If true, play the animation after setting the progress.

Returns:function

Sets the progress of the animation.

pause()
Defined by dojo/_base/fx

Pauses a running animation.

Returns:function

Pauses a running animation.

play(delay,gotoStart)
Defined by dojo/_base/fx

Start the animation.

Parameter Type Description
delay int
Optional

How many milliseconds to delay before starting.

gotoStart Boolean
Optional

If true, starts the animation from the beginning; otherwise, starts it from its current position.

Returns:Animation | function

The instance to allow chaining.

reverse(keepPaused,reverseEase)

The key method added to an animation to enable reversal.

Parameter Type Description
keepPaused Boolean

By default, calling reverse() will play the animation if it was paused. Pass in true to keep it paused (will have no effect if reverse is called while animation is playing).

reverseEase Function
Optional

A function to use for the reverse easing. This allows for the possibility of custom eases that are not in the dojo.fx library.

Returns:function

The key method added to an animation to enable reversal.

status()
Defined by dojo/_base/fx

Returns a string token representation of the status of the animation, one of: "paused", "playing", "stopped"

Returns:string
stop(gotoEnd)
Defined by dojo/_base/fx

Stops a running animation.

Parameter Type Description
gotoEnd boolean
Optional

If true, the animation will end.

Returns:function

Stops a running animation.

Error in the documentation? Can’t find what you are looking for? Let us know!