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

207
Visualizações
why smooth scroll JS is not working in my web

I need help, I ve been fighting with this whole day, but cant really find a problem why this is not working.

https://jsfiddle.net/bk51xgrq/13/

$(function () {
  $('a[href*="#"]').click(function () {
     var $target = $(this.hash);
     $target = $target.length ? $target : $('html');
     var targetOffset = $target.offset().top;
     $('html,body').animate({scrollTop: targetOffset}, {duration: 8600, easing: 'easeInBounce'});
  });
});
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

You are using jQuery but you haven't included it in your project. You can link to it using the CDN in your html document

 <!--jQuery -->
   <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
about 4 years ago · Juan Pablo Isaza Relatório
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