I
I
Islam Ibakaev2018-05-11 14:47:18
css
Islam Ibakaev, 2018-05-11 14:47:18

When loading the page, the block seems to jump out on the left, how to fix it?

I'm making a shop . Already almost completed, but one garbage torments.
When the page loads, the block with the main content seems to jump out from left to right. It spoils the visual experience. Tell me, what is the problem and how can I fix it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
coderisimo, 2018-05-11
@devellopah

show content after download finished:

#hideAll
 {
   position: fixed;
   left: 0px; 
   right: 0px; 
   top: 0px; 
   bottom: 0px; 
   background-color: white;
   z-index: 99; 

 }

<div style="display: none" id="hideAll">здесь ваш контент</div>

 <script type="text/javascript">
   document.getElementById("hideAll").style.display = "block";
 </script>

A
Anton, 2018-05-11
@Eridani

Hang up a preloader.
PS Visual perception spoils the default scroll of the sidebar

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question