Fix achievements notifications animation

This fixes #3243. Achievement notification animation now slides in from
off-screen left and then hides back to off-screen left.
This commit is contained in:
Daniel Fiore 2015-12-20 22:28:09 -08:00
parent 105c2c9497
commit 25531477c5
2 changed files with 2 additions and 2 deletions

View file

@ -218,7 +218,7 @@ $user-achievements-scale: 0.8
cursor: pointer
.popup
left: 600px
left: -600px
.user-level
background-image: url("/images/achievements/level-bg.png")

View file

@ -65,7 +65,7 @@ module.exports = class AchievementPopup extends CocoView
if @popup
hide = =>
return if @destroyed
@$el.animate {left: 600}, =>
@$el.animate {left: -600}, =>
@$el.remove()
@destroy()
@$el.animate left: 0