add animation to leaderboard

This commit is contained in:
Avital Oliver
2013-08-07 16:41:04 -07:00
parent fe63aa08f9
commit e1e2bc19c8
3 changed files with 7 additions and 1 deletions

View File

@@ -8,3 +8,4 @@ autopublish
insecure
preserve-inputs
random
animation

View File

@@ -12,12 +12,13 @@ body {
#outer {
width: 600px;
margin: 0 auto;
margin: 0 auto;
}
.player {
cursor: pointer;
padding: 5px;
width: 600px;
}
.player .name {

View File

@@ -25,6 +25,10 @@ if (Meteor.isClient) {
'click input.inc': function () {
Players.update(Session.get("selected_player"), {$inc: {score: 5}});
},
rendered: function () {
AnimatedEach.apply(this.$('.leaderboard'), ['move']);
}
});