X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..f562e4c6e5fac7bcb445985b99acbea4d706e6f0:/src/util/Animate.js diff --git a/src/util/Animate.js b/src/util/Animate.js index ceebbd3e..b5be7767 100644 --- a/src/util/Animate.js +++ b/src/util/Animate.js @@ -1,9 +1,23 @@ +/* + +This file is part of Ext JS 4 + +Copyright (c) 2011 Sencha Inc + +Contact: http://www.sencha.com/contact + +GNU General Public License Usage +This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html. + +If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact. + +*/ /** * @class Ext.util.Animate * This animation class is a mixin. * * Ext.util.Animate provides an API for the creation of animated transitions of properties and styles. - * This class is used as a mixin and currently applied to {@link Ext.core.Element}, {@link Ext.CompositeElement}, + * This class is used as a mixin and currently applied to {@link Ext.Element}, {@link Ext.CompositeElement}, * {@link Ext.draw.Sprite}, {@link Ext.draw.CompositeSprite}, and {@link Ext.Component}. Note that Components * have a limited subset of what attributes can be animated such as top, left, x, y, height, width, and * opacity (color, paddings, and margins can not be animated). @@ -121,7 +135,7 @@ * * ## Animation Keyframes * - * You can also set up complex animations with {@link Ext.fx.Anim#keyframe keyframe} which follows the + * You can also set up complex animations with {@link Ext.fx.Anim#keyframes keyframes} which follow the * CSS3 Animation configuration pattern. Note rotation, translation, and scaling can only be done for sprites. * The previous example can be written with the following syntax: * @@ -145,7 +159,7 @@ * * ## Animation Events * - * Each animation you create has events for {@link Ext.fx.Anim#beforeanimation beforeanimation}, + * Each animation you create has events for {@link Ext.fx.Anim#beforeanimate beforeanimate}, * {@link Ext.fx.Anim#afteranimate afteranimate}, and {@link Ext.fx.Anim#lastframe lastframe}. * Keyframed animations adds an additional {@link Ext.fx.Animator#keyframe keyframe} event which * fires for each keyframe in your animation. @@ -206,7 +220,7 @@ Ext.define('Ext.util.Animate', { /** *

Perform custom animation on this object.

- *

This method is applicable to both the the {@link Ext.Component Component} class and the {@link Ext.core.Element Element} class. + *

This method is applicable to both the {@link Ext.Component Component} class and the {@link Ext.Element Element} class. * It performs animated transitions of certain properties of this object over a specified timeline.

*

The sole parameter is an object which specifies start property values, end property values, and properties which * describe the timeline. Of the properties listed below, only to is mandatory.

@@ -233,7 +247,7 @@ Ext.define('Ext.util.Animate', { *
  • listeners
    This is a standard {@link Ext.util.Observable#listeners listeners} configuration object which may be used * to inject behaviour at either the beforeanimate event or the afteranimate event.
  • *

    - *

    Animating an {@link Ext.core.Element Element}

    + *

    Animating an {@link Ext.Element Element}

    * When animating an Element, the following properties may be specified in from, to, and keyframe objects: