JSFiddle - React, Tailwind, and code Playground
HTML
<div class="lin_und">Click</div>
<div id="big_ul_hide"></div>
CSS
.lin_und {background:red;height:100px;width:100px;}
.log_in_box_dd {background:blue;height:100px;width:100px;}
JavaScript
$('.lin_und').click(function() {
$('#big_ul_hide').toggleClass('log_in_box_dd');
setTimeout(function() {
$('html').click(function() {
$('#big_ul_hide').toggleClass('log_in_box_dd');
});
$('#big_ul_hide').click(function(event) {
event.stopPropagation();
});}, 1000);
});