Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

67
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!