$(document).ready(function(){ $(".nav i").addClass("move"); $( " .section1 .start, .section1" ).addClass("move" ); setTimeout(function () { $(".slide.no01").addClass("move"); $(".slideSelect .no01 div").addClass("move"); }, 0); $(".grid img").click(function(){ $(".layer.photopopup").addClass("move"); }); $(".selectedBox .start").click(function(){ $(".layer.make").addClass("move"); }); $(".layer .remove").click(function(){ $(".layer").removeClass("move"); }); }); $(document).ready(function(){ $("li.no01").mouseover(function(){ $(".slide, .slideSelect div").removeClass("move"); $(".slide.no01, .slideSelect .no01 div").addClass("move"); }); $("li.no02").mouseover(function(){ $(".slide, .slideSelect div").removeClass("move"); $(".slide.no02, .slideSelect .no02 div").addClass("move"); }); $("li.no03").mouseover(function(){ $(".slide, .slideSelect div").removeClass("move"); $(".slide.no03, .slideSelect .no03 div").addClass("move"); }); $(function() { $('a[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) { $('html, body').animate({ scrollTop: target.offset().top, easing:"easeOutBounce" }, 500); return false; } } }); }); });