3 Copyright 2012 Yahoo! Inc. All rights reserved.
4 Licensed under the BSD License.
5 http://yuilibrary.com/license/
7 YUI.add('anim-xy', function (Y, NAME) {
10 * Adds support for the <code>xy</code> property in <code>from</code> and
11 * <code>to</code> attributes.
18 Y.Anim.behaviors.xy = {
19 set: function(anim, att, from, to, elapsed, duration, fn) {
21 fn(elapsed, NUM(from[0]), NUM(to[0]) - NUM(from[0]), duration),
22 fn(elapsed, NUM(from[1]), NUM(to[1]) - NUM(from[1]), duration)
26 return anim._node.getXY();
32 }, '3.7.2', {"requires": ["anim-base", "node-screen"]});