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

166
Vistas
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 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