'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'});
  });
});


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source