Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

160
Visualizações
Webpage bouncing vertically when spinner is visible?

Content around the spinner (sidebar, previous paginated items) seem to bounce up and down, vertically. Issue disappears when the spinner is not active.

If I scroll almost to the end (half the height of the spinner) this won't happen, its only when I scroll so far the entire spinner is visible that the page 'bounces'.

I have this code, which shows a spinner when profiles are loading or paginating:

{(this.state.profilesLoading || this.state.profilesPaginating) && (<div className="flex justify-center items-center h-full">
    <div className="animate-spin rounded-full h-32 w-32 border-b-2 border-gray-900"></div>
</div>)}

If I remove the inner div, no more bounce:

{(this.state.profilesLoading || this.state.profilesPaginating) && (<div className="flex justify-center items-center h-full">
    Loading...
</div>)}

Unsure if this is a React bug with evaluating conditional checks and its re-render logic, Tailwind bug with its animations, or JavaScript bug in general?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda