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