본문 바로가기

JQuery-js-css

[plugin] ScrollMagic 실행

var scene = new ScrollMagic.Scene({triggerElement: ".dynamicContent #loading_img", triggerHook: "onEnter"})
.addTo(controller)
.on("enter", function (e) {
if (!$("#loading_img").hasClass("active")) {
$("#loading_img").addClass("active");
if (console){
console.log("loading new items");
}
// simulate ajax call to add content using the function below
setTimeout(getAjaxImageList, 1000, 9);
}
});

'JQuery-js-css' 카테고리의 다른 글