An lz.animatorgroup wraps several
                <animator>s or
                <animatorgroup>s, and runs them in sequence or
                simultaneously. As an example, the code below animates a view first
                along the x-axis and then the y.
            
<canvas height="225">
   <view bgcolor="red" width="100" height="100">
     <animatorgroup process="sequential">
       <animator attribute="x" to="100" duration="1000"/>
       <animator attribute="y" to="100" duration="1000"/>
     </animatorgroup>
   </view>
 </canvas>
               The attributes attribute,
                duration, from,
                indirect, motion,
                process, relative,
                started, target, and
                to are cascaded to enclosed <animator>s and
                <animatorgroup>s.  Events (such as onstart, onstop,
                etc.) and the name and
                id attributes, however, are not cascaded.
            
| Name (CSS property) | Type (tag) | Type (js) | Default | Category | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| attribute | token | String | read/write | |||||||
| The name of the attribute whose value is animated. This attribute is required on an animator, unless the animator is inside an animatorgroup that specifies an attribute. | ||||||||||
| duration | number | Number | read/write | |||||||
| The duration of the animation, in milliseconds (1000 = 1 second). | ||||||||||
| from | number | Number | read/write | |||||||
| The start value for the animation. Defaults to the targeted attribute's current value. | ||||||||||
| indirect | boolean | Boolean | read/write | |||||||
| Controls the direction of the animation.  A value of truewill cause the animation to go in the "other"
                               direction. | ||||||||||
| isactive | boolean | Boolean | readonly | |||||||
| 
 | ||||||||||
| motion | linear | easein | easeout | easeboth | String | easeboth | read/write | ||||||
| Whether and how the animation accelerates and decelerates | ||||||||||
| paused | boolean | Boolean | false | read/write | ||||||
| The paused state of the animator. If true, the animator will pause. When changed to false, the animator will resume from its current location. | ||||||||||
| process | simultaneous | sequential | String | sequential | read/write | ||||||
| In an <animatorgroup>, whether to process the
                               individual<animator>s simultaneously or
                               sequentially.  Has no effect on an individual<animator>. | ||||||||||
| relative | boolean | Boolean | false | read/write | ||||||
| Whether the tovalue is relative to the
                               initial value of the attribute (true), or
                               is an absolute value (false). | ||||||||||
| repeat | number | Number | 1 | read/write | ||||||
| The number of times to repeat the animation.  This should be a
                               positive integer or Infinity.  Changes to
                               the repeat value while the animator is running will only take
                               effect, after the animation is finished and then restarted.
 | ||||||||||
| start | boolean | Boolean | true | initialize-only | ||||||
| 
 | ||||||||||
| started | boolean | Boolean | true | read/write | ||||||
| Whether to start the animation immediately (default).
                               Initialize to false to defer the animation.  The starting and
                               stopping of the animation can be controlled by setting this
                               attribute. 
 | ||||||||||
| target | reference | lz.node | read/write | |||||||
| The object for which an attribute will be animated (by default, the immediate parent of the animator node) | ||||||||||
| to | number | Number | read/write | |||||||
| The final value for the targeted attribute. | ||||||||||
classroot, cloneManager, data, datapath, defaultplacement, id, ignoreplacement, immediateparent, inited, initstage, name, nodeLevel, options, parent, placement, styleclass, subnodes, transition
Methods
| doStart() | 
|---|
| ![[Caution]](images/caution.png) | This method is deprecated | 
|---|---|
| Use setAttribute('started', true) instead. | 
| pause() | 
|---|
| ![[Caution]](images/caution.png) | This method is deprecated | 
|---|---|
| Use setAttribute('paused', ...) instead. | 
| Parameter Name | Type | Description | 
|---|---|---|
| dop | Boolean | If true, pauses the animator. If false, unpauses the animator. If null, toggles the paused state of the animator. | 
| stop() | 
|---|
| ![[Caution]](images/caution.png) | This method is deprecated | 
|---|---|
| Use setAttribute('started', false) instead. | 
animate, applyConstraintMethod, applyData, childOf, completeInstantiation, construct, createChildren, dataBindAttribute, destroy, determinePlacement, getOption, getUID, init, lookupSourceLocator, releaseConstraint, releaseConstraintMethod, searchImmediateSubnodes, searchSubnodes, setOption, setSelected, updateData
Events
Copyright © 2002-2010 Laszlo Systems, Inc. All Rights Reserved. Unauthorized use, duplication or distribution is strictly prohibited. This is the proprietary information of Laszlo Systems, Inc. Use is subject to license terms.