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 cursor: pointer
.popup .popup
left: 600px left: -600px
.user-level .user-level
background-image: url("/images/achievements/level-bg.png") background-image: url("/images/achievements/level-bg.png")

View file

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