Ver originalfunction mostrar(){ type = $(this).attr('data-type'); $('.overlay1').fadeIn(function(){window.setTimeout(function(){$('.form1.'+type).addClass('window-container-visible');}, 100);}); }