mirror of
https://github.com/Kenshin/simpread.git
synced 2026-01-25 14:28:34 +00:00
Optimize notify hidden performance.
This commit is contained in:
parent
ee26bb9737
commit
03064b18f7
@ -314,7 +314,7 @@ notify-gp .notify-snackbar {
|
||||
|
||||
to {
|
||||
opacity: 0;
|
||||
transform: translate3d(0, -100%, 0);
|
||||
transform: scaleY(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -144,8 +144,10 @@ var Notify = ( function () {
|
||||
},
|
||||
hidden = function( target ) {
|
||||
target[0].addEventListener( 'animationend', function(e) {
|
||||
target.remove();
|
||||
if ($root.children().length === 0 ) $root.css( "z-index", 0 );
|
||||
target.slideUp( 10, function() {
|
||||
target.remove();
|
||||
if ($root.children().length === 0 ) $root.css( "z-index", 0 );
|
||||
});
|
||||
}, false );
|
||||
target.addClass( 'notify-hide' );
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user