Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use move() for balloons

  • Loading branch information...
commit ecbec5a3dce7a059bac0f1f8d4fdec56f960b778 1 parent a4deb74
@tj authored
Showing with 16 additions and 13 deletions.
  1. +14 −0 particles/public/game.js
  2. +2 −13 particles/public/style.css
View
14 particles/public/game.js
@@ -2,6 +2,20 @@
o = $;
/**
+ * Balloons.
+ */
+
+o(function(){
+ move('#balloons')
+ .delay('2s')
+ .set('top', -400)
+ .set('left', 700)
+ .rotate(50)
+ .duration('20s')
+ .end();
+});
+
+/**
* Guy.
*/
View
15 particles/public/style.css
@@ -2,24 +2,13 @@ body {
background: url(../../common/images/bg.jpg);
overflow: hidden;
}
-@-webkit-keyframes balloons {
- from {
- top: 160px;
- left: 80px;
- }
- to {
- top: -400px;
- left: 700px;
- -webkit-transform: rotate(50deg);
- }
-}
#balloons {
position: absolute;
- top: -900px;
+ top: 160px;
+ left: 80px;
width: 223px;
height: 433px;
background: url(images/balloons.png);
- -webkit-animation: balloons 20s;
}
#guy {
position: absolute;
Please sign in to comment.
Something went wrong with that request. Please try again.