2 * Portions of this file are based on pieces of Yahoo User Interface Library
3 * Copyright (c) 2007, Yahoo! Inc. All rights reserved.
4 * YUI licensed under the BSD License:
5 * http://developer.yahoo.net/yui/license.txt
6 * <script type="text/javascript">
13 scroll : function(el, args, duration, easing, cb, scope) {
14 this.run(el, args, duration, easing, cb, scope, Roo.lib.Scroll);
17 motion : function(el, args, duration, easing, cb, scope) {
18 this.run(el, args, duration, easing, cb, scope, Roo.lib.Motion);
21 color : function(el, args, duration, easing, cb, scope) {
22 this.run(el, args, duration, easing, cb, scope, Roo.lib.ColorAnim);
25 run : function(el, args, duration, easing, cb, scope, type) {
26 type = type || Roo.lib.AnimBase;
27 if (typeof easing == "string") {
28 easing = Roo.lib.Easing[easing];
30 var anim = new type(el, args, duration, easing);
31 anim.animateX(function() {
32 Roo.callback(cb, scope);