- ホーム
- Young caucasian beauty woman sleeping on white bed
$(document).ready(function(){
$('a[href^="#"]').on('click', function (e) {
e.preventDefault();
var target = this.hash;
var $target = $(target);
$('html, body').stop().animate({
'scrollTop': $target.offset().top - 50 // ここでオフセット値を50pxに設定しています
}, 900, 'swing', function () {
window.location.hash = target;
});
});
});