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

190
Visualizações
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 à 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