2 YUI 3.13.0 (build 508226d)
3 Copyright 2013 Yahoo! Inc. All rights reserved.
4 Licensed under the BSD License.
5 http://yuilibrary.com/license/
8 YUI.add('anim-xy', function (Y, NAME) {
11 * Adds support for the <code>xy</code> property in <code>from</code> and
12 * <code>to</code> attributes.
19 Y.Anim.behaviors.xy = {
20 set: function(anim, att, from, to, elapsed, duration, fn) {
22 fn(elapsed, NUM(from[0]), NUM(to[0]) - NUM(from[0]), duration),
23 fn(elapsed, NUM(from[1]), NUM(to[1]) - NUM(from[1]), duration)
27 return anim._node.getXY();
33 }, '3.13.0', {"requires": ["anim-base", "node-screen"]});