버튼

· IT/Front
< 1 / 4 > // index.js$(function () { //-- at1 btn img slide let cnt = 0; $(".at1-btn li").on("click", function () { let at1No = $(this).index(); if (at1No == 2 && cnt 0) { cnt--; $(".at1-img").animate({ left: "+=100%" }, 500); } $(".disp").text(cnt + 1 + " / 4"); });});/* index.css *//* article 1 */.at1-box { border: 1px solid black; width: 500px..
Huitopia
'버튼' 태그의 글 목록