Date: 2021-08-04 18:15:02, Hit: 502
$(function(){
    $('#btns').click(function(){
        if($('#hidenBox').is(':hidden')) $('#hidenBox').fadeIn(500);
        else $('#hidenBox').fadeOut(500);
    });
    $(document).mouseup(function(e){
        var con = $('#hidenBox');
        if(!con.is(e.target) && con.has(e.target).length === 0) con.fadeOut(500);
    });
});
Edit Delete
License by Moony