Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function(){
- $('a[href^="#"]').on('click',function (e) {
- e.preventDefault();
- var target = this.hash,
- $target = $(target);
- $('html, body').stop().animate({
- 'scrollTop': $target.offset().top
- }, 900, 'swing', function () {
- window.location.hash = target;
- });
- });
- });
Add Comment
Please, Sign In to add comment