Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

69
Vistas
JavaScript loaded page animation

I want to design a page that displays my name. When the site starts working, the page takes the entire width and length, but when 15 seconds pass, I want it to be placed in another place to be replaced by another page, and so on

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Here's a solution from what I understand of your question:

document.onreadystatechange = function () {
      document.getElementById('content').style.display="none";
      var state = document.readyState
      if (state == 'complete') {
          setTimeout(function(){
             document.getElementById('load').classList.remove("center");
               document.getElementById('content').style.display="block";
          },1500);
      }
    }
  .center{
        width:100%;
        height:100vh;
        display:flex; 
        justify-content:center;
        align-items:center;
        z-index:9999;
    }
<div id="load" class="center">Your name</div>
<div id="content">Content</div>


    

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda