jQuery(function() {
jQuery("a[href^=#]").click(function(){
var elmID = jQuery(this).attr("href");
var posi = 0;
if(jQuery(elmID).size()){
posi = jQuery(elmID).offset().top -0;
BodySlider(posi);
return false;
}
});
function BodySlider(HashOffset){
jQuery("html,body").animate({
scrollTop: HashOffset
}, 600);
}
});
$(function() {
$('.slider').slick({
prevArrow: '',
nextArrow: '',
dots: true,
dotsClass: 'slide-dots2',
slidesToShow: 1,
centerMode: true, //要素を中央寄せ
centerPadding:'10%', //両サイドの見えている部分のサイズ
autoplay:true, //自動再生
responsive: [{
breakpoint: 768,
settings: {
centerMode: true,
}
}]
});
});
$(function() {
$('.under-slider').slick({
centerMode: false,
prevArrow: '',
nextArrow: '',
dots: true,
slidesToShow: 1,
autoplay:true, //自動再生
variableWidth : true,
dotsClass: 'slide-dots',
responsive: [{
breakpoint: 768,settings: {
slidesToShow: 1,
centerMode: true, //要素を中央寄せ
}
}]
});
});