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

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