Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

hold balloon

  • Loading branch information...
commit 5e8184994eea57522349dbf7886015ef838d3e49 1 parent 75b3662
TJ Holowaychuk authored
Showing with 9 additions and 6 deletions.
  1. +4 −4 particles/public/game.js
  2. +5 −2 particles/public/style.css
8 particles/public/game.js
View
@@ -7,11 +7,11 @@ o = $;
o(function(){
move('#balloons')
- .set('top', -400)
+ .set('bottom', window.innerHeight)
.set('left', 700)
- .rotate(50)
+ .rotate(0)
.delay('1s')
- .duration('20s')
+ .duration('5s')
.ease('in')
.end();
});
@@ -39,7 +39,7 @@ o(function(){
move(head)
.rotate(max(-(x * .15), -22))
- .duration(500)
+ .duration('1s')
.end();
}
7 particles/public/style.css
View
@@ -4,11 +4,13 @@ body {
}
#balloons {
position: absolute;
- top: 160px;
- left: 80px;
+ bottom: 90px;
+ left: 90px;
width: 223px;
height: 433px;
background: url(images/balloons.png);
+ z-index: 20;
+ -webkit-transform: rotate(25deg);
}
#guy {
position: absolute;
@@ -53,6 +55,7 @@ body {
height: 142px;
background: url(images/guy-arm-right.png);
-webkit-transform-origin: 20px 0;
+ -webkit-transform: rotate(-30deg);
}
#grass {
position: absolute;
Please sign in to comment.
Something went wrong with that request. Please try again.