YUI().use('anim', function(Y) {

var animacja_1 = new Y.Anim({
   node: '#kontener_1',
   from: {
      top: 0,
      left: -500
   },
   to: {
      top: 0,
      left: 10
   },
   duration: 2,
   easing: Y.Easing.easeOut
});
 
animacja_1.run();

var animacja_2 = new Y.Anim({
   node: '#kontener_2',
   from: {
      top: 10,
      left: 1000
   },
   to: {
      top: 10,
      left: 10
   },
   duration: 2,
   easing: Y.Easing.easeOut
});
 
animacja_2.run();

var animacja_3 = new Y.Anim({
   node: '#kontener_3',
   from: {
      top: 500,
      left: 10
   },
   to: {
      top: 20,
      left: 10
   },
   duration: 3,
   easing: Y.Easing.easeOut
});
 
animacja_3.run();
    
});

