Permalink
Browse files

less delay

  • Loading branch information...
1 parent ecbec5a commit 75b3662e1dc622b1ccbcc9ab09e769d54c1cd80d @tj committed Sep 3, 2011
Showing with 8 additions and 5 deletions.
  1. +8 −5 particles/public/game.js
@@ -7,11 +7,12 @@ o = $;
o(function(){
move('#balloons')
- .delay('2s')
.set('top', -400)
.set('left', 700)
.rotate(50)
+ .delay('1s')
.duration('20s')
+ .ease('in')
.end();
});
@@ -42,10 +43,12 @@ o(function(){
.end();
}
- setInterval(function(){
- var off = balloons.offset();
- lookat(off.left|0, off.top|0);
- }, 200);
+ setTimeout(function(){
+ setInterval(function(){
+ var off = balloons.offset();
+ lookat(off.left|0, off.top|0);
+ }, 200);
+ }, 1000);
})
/**

0 comments on commit 75b3662

Please sign in to comment.