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

188
Vistas
Setting li item on horizontal scroll so that it's in view when page loads

In this example there is a horizontal scroll and when a button (filter) is clicked it reloads the page.

How would one implement something like this. There is a horizontal scroll but the active one is always in view. I inspected this and there does not seem to be any css doing this, it looks like pure javascript.

In the image below we can see denim is the 9th li item and has a class active, but I don't get how they have it so it's always in view when an item is clicked and the page reloads.

Here is a link to an example: https://www.prada.com/us/en/women/bags/top_handles.html

enter image description here

about 4 years ago · Santiago Gelvez
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