Timurkin,
$('a.js-scroll-trigger[href*="#"]:not([href="#"])').click(function() {
if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
if (target.length) {
var up = $(window).scrollTop() > 100 ? 0 : -102;
$('html, body').stop().animate({
scrollTop: target.offset().top + up
}, 1000, "easeInOutExpo");
return false;
}
}
});