$(document).ready(function() { // 문서 준비 이벤트 헤드에 선언할 때 필요
// popup
$(".popupClose").on("click", function() {
$(".popup").slideUp();
});
// gnb
$(".depth2, .depth2Bg").hide();
$(".gnb > li").on("mouseenter", function() {
$(".depth2, .depth2Bg").stop().slideDown();
});
$(".gnb > li").on("mouseleave", function() {
$(".depth2, .depth2Bg").stop().slideUp();
});
// mainBanner Slide
$(".mb").slick ({
autoplay: true,
autoplaySpeed: 3000,
dots: true,
fade: true
});
// insta
$(".instaList").slick ({
slidesToShow: 5,
slidesToScroll: 1,
autoplay: true,
autoplaySpeed: 2000,
dots: false
});
// gotop
$(window).scroll(function () {
if ($(this).scrollTop() > 100) {
$(".gotop").fadeIn();
} else {
$(".gotop").fadeOut();
}
});
$(".gotop").click(function () {
$("html, body").animate({
scrollTop: 0
}, "slow");
return false;
});
});