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

164
Views
Scroll right slowly with a scroll and jQuery

I need help doing a slow scroll right with a scroll.

The page scrolls down normally, only one container goes to the right. I managed to scroll to the right but the problem is that it looks nasty because it kind of cuts. I tried to use jQuery (animate) but it scrolled to the point the scroll sent and then it didn't look nice again.

    const scrollContainer = document.querySelector("article");

    scrollContainer.addEventListener("wheel", (evt) => {
        evt.preventDefault();
        $('.header_scroll').animate( { scrollLeft: '+='+evt.deltaY/2 }, 100);
        // scrollContainer.scrollLeft += evt.deltaY;   -- that was before
    });
about 4 years ago · Juan Pablo Isaza
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!