Basic help with SmoothScroll + jQuery Easing Plugin

Basic help with SmoothScroll + jQuery Easing Plugin

Hi, im super new to jQuery and i just need a little help understanding how to 
set up a few plugins.

Im using this smooth-scroll script and in the comments (4) on that page the
author says it's easy to set up an ease plugin in this way:






  1. $('html, body').animate(
  2. {scrollTop: targetOffset},
  3. {duration: 400, easing: 'easeInOutExpo'}
  4. );

How/Where do i go about adding that code??

And what i tryed was:



  1. <script type="text/javascript">
  2. $(document).ready(function() {
  3. $('a').smoothScroll({
  4. afterScroll: function() {
  5. /* location.hash = this.hash; */
  6. }
  7. });
  8. });
  9. $('html, body').animate(
  10. {scrollTop: targetOffset},
  11. {duration: 400, easing: 'easeOutBounce'}
  12. );
  13. </script>