Necesito ayuda, he estado luchando con esto todo el día, pero realmente no puedo encontrar el problema de por qué esto no funciona.
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'}); }); });Está utilizando jQuery pero no lo ha incluido en su proyecto. Puede vincularlo usando el CDN en su documento html
<!--jQuery --> <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>