Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

186
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!