add mask effect of message
This commit is contained in:
parent
9101ae4607
commit
cd1ee4101a
4
base.js
4
base.js
@ -20,9 +20,12 @@ $(function () {
|
||||
});
|
||||
$(document.body).on('click','.msg-footer span',function(){
|
||||
var p = $(this).parent().parent();
|
||||
var m = $('.mask');
|
||||
p.css('animation','fadeOut .5s');
|
||||
m.css('animation','fadeOut .5s');
|
||||
setTimeout(function(){
|
||||
p.remove();
|
||||
m.hide();
|
||||
},500);
|
||||
});
|
||||
})();
|
||||
@ -43,6 +46,7 @@ var message = new function () {
|
||||
'</div>' +
|
||||
'</div>'
|
||||
$(document.body).append(html);
|
||||
$('.mask').show().css('animation','fadeIn .5s');
|
||||
$('#mh-'+id).Drag($('#mc-'+id));
|
||||
return id;
|
||||
}
|
||||
|
@ -54,6 +54,8 @@
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mask"></div>
|
||||
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
|
||||
<script src="drag.js"></script>
|
||||
<script src="base.js"></script>
|
||||
|
Loading…
Reference in New Issue
Block a user