[plugin] ScrollMagic 실행
2021. 2. 17.
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);
}
});
'PLUGIN' 카테고리의 다른 글
[plugin] datepicker 값 초기화 _clearDate (0) | 2021.08.25 |
---|---|
[plugin] 파일업로드 upload.html5.js (0) | 2021.02.17 |
[plugin] Flavr 사용 (0) | 2021.02.17 |
[plugin] clipboard.js 클립보드 복사 JS 사용 (0) | 2021.02.01 |
[plugin] IScroll 5 - GitHub - document - link (0) | 2021.01.31 |