상세 컨텐츠

본문 제목

shutter motion slider

jquery test

by binbing 2018. 8. 2. 10:30

본문


[js]

var idx = idx2 = 0;

function shutterMotion(){

var shutterCount = $(".shutter").length;


idx2 = (idx + 1) % shutterCount;


$("shutter").hide();

$("shutter:eq("+idx2+")").show();


idx = idx2;


$(".top").finish().animate({"top":"0"}).animate({"top":"-50vh"});

$(".btm").finish().animate({"bottom":"0"}).animate({"bottom":"-50vh"});

}







See the Pen shutter motion slider by seobin (@lullu-lalla) on CodePen.


관련글 더보기

댓글 영역