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

217
Vistas
How to scroll more than one containers smoothly, programmatically?

I have an interactive web app with more than one scrollable column. Each column contains a list of items. When a function is called, each scrollable column should scroll to a specific item. It is possible by calling the following for each column:

document.querySelector(`#view_id`).scrollIntoView({ behavior: "auto", block: "nearest", inline: "nearest" });

However, all columns jumping around immediately look terrible from a user-friendliness point of view. I can make columns scroll smoothly by changing the call to be the following:

document.querySelector(`#view_id`).scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });

However, if I call this multiple times, only the last one takes effect. How can I scroll all columns smoothly at the same time?

An Angular-specific solution would also help me.

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