마우스 휠 이벤트 - 원페이지 (mousewheel event - onepage)
mousewheel event마우스 휠을 이용한 인터랙션이다.원페이지형식에 응용하였으며 휠을 내리거나 올릴때 하나의 화면이 통으로 슬라이드 되도록 하였다.javascript123456789101112131415161718192021222324252627var win_h = $(window).height(); $('.section').each(function(index){ $(this).attr("data-index",win_h * index); }); $('.section').on("mousewheel",function(e){ var sectionPos = parseInt($(this).attr("data-index")); if(e.originalEvent.wheelDelta >= 0) { $("html..