[ADD]: animation on down arrow in blog cover

bzr revid: aja@tinyerp.com-20140211062356-0gm6b73n4p3brp0u
This commit is contained in:
ajay javiya (OpenERP) 2014-02-11 11:53:56 +05:30
parent 79a9befe8d
commit ce2a772ae3
1 changed files with 13 additions and 0 deletions

View File

@ -23,4 +23,17 @@ $(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;
});
});
});