diff --git a/scripts/iconomation.js b/scripts/iconomation.js index 6ac601e..41e2529 100644 --- a/scripts/iconomation.js +++ b/scripts/iconomation.js @@ -1,31 +1,48 @@ // add icons -$('.playspace').append(''); -$('.playspace').append(''); +$('.playspace').append(''); +$('.playspace').append(''); +$('.playspace').append(''); // set the initial positions -$('.em-rooster').css({ +$('.em-articulated_lorry').css({ + top: 200, + left: 400 +}); + +$('.em-blue_car').css({ top: 200, left: 300 }); -$('.fa-futbol-o').css({ - top: 210, +$('.em-tractor').css({ + top: 200, left: 100 }); - // play! - -$('.em-rooster').animate({ - left: 50 +$('.em-articulated_lorry').animate({ + left: 300 }, 1000); +// $('.em-blue_car').animate({ +// left: 50 +// }, 1000); + // after 660ms... setTimeout(function() { - // ...move the ball - $('.fa-futbol-o').animate({ - left: 0 + $('.em-blue_car').animate({ + left: 50 }, 800, 'easeOutQuart'); +},660); + +setTimeout(function(){ + // ...move the ball + $('.em-tractor').animate({ + left:0 + }, 2000, 'easeOutQuart'); + }, 660); + +