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:
$('html, body').animate(
{scrollTop: targetOffset},
{duration: 400, easing: 'easeInOutExpo'}
);
How/Where do i go about adding that code??
And what i tryed was:
- <script type="text/javascript">
- $(document).ready(function() {
- $('a').smoothScroll({
- afterScroll: function() {
- /* location.hash = this.hash; */
- }
- });
- });
- $('html, body').animate(
- {scrollTop: targetOffset},
- {duration: 400, easing: 'easeOutBounce'}
- );
- </script>