mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-30 19:06:59 -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
|
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")
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue