[ADD]: animation on down arrow in blog cover
bzr revid: aja@tinyerp.com-20140211062356-0gm6b73n4p3brp0u
This commit is contained in:
parent
79a9befe8d
commit
ce2a772ae3
|
@ -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;
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue