Animation

Animation

{Object} Animation Animation handler; for drawing a single object in one instance

Constructor

new Animation(object, timing, period, change)

Description:
  • Creates an animation instance
Source:
Properties:
Name Type Description
object clObject CanvasLab object
timing string | function Timing function
period number Period of time
change Object Change to object
options Object Options for this object
Parameters:
Name Type Description
object clObject Canvas Lab object
timing string | function Timing function
period number Period of time
change Object Change to object

Methods

animate()

Description:
  • Initiates animation
Source:

cache(value)

Description:
  • Set cache
Source:
See:
Parameters:
Name Type Description
value boolean True || False

cache() → {boolean}

Description:
  • Get cache
Source:
See:
Returns:
True || False
Type
boolean

cancel()

Description:
  • Cancels animation
Source:
See:

change(value)

Description:
  • Set change
Source:
Parameters:
Name Type Description
value clChange Canvas Lab change object

change() → {clChange}

Description:
  • Get change
Source:
Returns:
Canvas Lab change object
Type
clChange

object(value)

Description:
  • Set object to animate
Source:
Parameters:
Name Type Description
value clObject Canvas Lab object

object() → {clObject}

Description:
  • Get object
Source:
Returns:
Canvas Lab object
Type
clObject

period(value)

Description:
  • Set period of animation
Source:
See:
Parameters:
Name Type Description
value number Period of animation-time

period() → {number}

Description:
  • Get period of animation
Source:
See:
Returns:
Period of animation-time
Type
number

queue(value)

Description:
  • Set queue
Source:
See:
Parameters:
Name Type Description
value Queue Queue object

queue() → {Queue}

Description:
  • Get queue
Source:
See:
Returns:
Queue object
Type
Queue

timing(value)

Description:
  • Set timing
Source:
Parameters:
Name Type Description
value string | function Timing function

timing() → {function}

Description:
  • Get timing
Source:
Returns:
Timing function
Type
function