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

182
Vistas
How does requestAnimationFrame transform translate optimize for stuff out of browser viewport

I have some code when attached to a wrapper div, creates inserts some divs inside the wrapper div and that runs an animation loop for a second, moving child divs around.

I have a list of divs, on each div I attach this code and move the child divs around.

So if I layout these list of divs on top of each other with no styling they all become visible inside viewport, and there is some lag while moving animation of the child divs.

But if I layout these list of divs in a display flex, and a vertical scrollbar appears, only one item is visible in the viewport, there is no lag, child divs move smoothly.

I was wondering since there is no lag with display flex, as I present, I don't need to worry about only attaching items as they become visible, like as if lazy loading images.

And maybe get to the bottom of this, why is there lag on the first scenario?

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