Changeset 13190
- Timestamp:
- 03/24/08 20:26:48 (8 months ago)
- Files:
-
- 1 modified
-
dojo/trunk/_base/fx.js (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dojo/trunk/_base/fx.js
r13040 r13190 33 33 d.declare("dojo._Animation", null, { 34 34 // summary 35 // A generic animation class that fires callbacks into it 's handlers35 // A generic animation class that fires callbacks into its handlers 36 36 // object at various states. Nearly all dojo animation functions 37 37 // return an instance of this method, usually without calling the … … 81 81 // 82 82 // beforeBegin: Event 83 // Synthetic event fired before a dojo._Animation begins playing (syn hcronous)83 // Synthetic event fired before a dojo._Animation begins playing (synchronous) 84 84 beforeBegin: null, 85 85 … … 409 409 } 410 410 411 dojo.animateProperty = function(/*Object*/ args){ 411 /*===== 412 dojo.declare("dojo.__AnimArgs", [dojo.__FadeArgs], { 413 // Properties: Object? 414 // A hash map of style properties to Objects describing the transition, 415 // such as the properties of dojo._Line with an additional 'unit' property 416 properties: {} 417 418 //TODOC: add event callbacks 419 }); 420 =====*/ 421 422 dojo.animateProperty = function(/*dojo.__AnimArgs*/ args){ 412 423 // summary: 413 424 // Returns an animation that will transition the properties of … … 420 431 // style properties, and animates them in parallel over a set 421 432 // duration. 422 //423 // args.node can be a String or a DOMNode reference424 433 // 425 434 // example: … … 524 533 /*Integer?*/ delay){ 525 534 // summary: 526 // asimpler interface to `dojo.animateProperty()`, also returns535 // A simpler interface to `dojo.animateProperty()`, also returns 527 536 // an instance of `dojo._Animation` but begins the animation 528 // immediately unlike nearly every other Dojo animation API.537 // immediately, unlike nearly every other Dojo animation API. 529 538 // description: 530 539 // `dojo.anim` is a simpler (but somewhat less powerful) version 531 // of `dojo.animateProperty` which defaultsmany basic properties540 // of `dojo.animateProperty`. It uses defaults for many basic properties 532 541 // and allows for positional parameters to be used in place of the 533 542 // packed "property bag" which is used for other Dojo animation … … 540 549 // a DOM node or the id of a node to animate CSS properties on 541 550 // duration: 542 // Optional.The number of milliseconds over which the animation551 // The number of milliseconds over which the animation 543 552 // should run. Defaults to the global animation default duration 544 553 // (350ms). 545 554 // easing: 546 // Optional. An easing function over which to calculate547 // a ccelreation and deceleration of the animation through its548 // duration.A default easing algorithm is provided, but you may555 // An easing function over which to calculate acceleration 556 // and deceleration of the animation through its duration. 557 // A default easing algorithm is provided, but you may 549 558 // plug in any you wish. A large selection of easing algorithms 550 559 // are available in `dojox.fx.easing`. 551 560 // onEnd: 552 // Optional.A function to be called when the animation finishes561 // A function to be called when the animation finishes 553 562 // running. 554 563 // delay: 555 // Optional.The number of milliseconds to delay beginning the564 // The number of milliseconds to delay beginning the 556 565 // animation by. The default is 0. 557 566 // example: