mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
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:
parent
105c2c9497
commit
25531477c5
2 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue