<animator>
Changes the value of another object's attribute over time.

JavaScript: lz.animator
extends <animatorgroup> » <node> » lz.Eventable »

Animators change the value of an object's attribute over a specified duration in milliseconds. For example, the following program defines an animator for a window that moves it to a position of x=100 over 1 second (1000 milliseconds).

<canvas height="65">
   <window height="50" width="50">
     <animator attribute="x" to="100" duration="1000"/>
   </window>
 </canvas>

See the Guide for a complete discussion of animators and animation in Laszlo applications.

Methods

$lzc$set_attribute()
animator.$lzc$set_attribute(attribute);
Parameter Name Type Description
attribute    

Methods inherited from <animatorgroup>

doStart, pause, stop

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Events inherited from <animatorgroup>

onrepeat, onstart, onstop

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy