26_Double Vertical Slider
π» μ£Όμ : μμͺ½μ μ΄λ―Έμ§μ ν μ€νΈκ° μμ. νμ΄νλ₯Ό λλ¬ μ΄λ―Έμ§μ ν μ€νΈλ₯Ό λ°κΏ μ μλ νμ΄μ§
const sliderHeight = sliderContainer.clientHeight
if(direction === 'up') {
activeSlideIndex++
if(activeSlideIndex > slidesLength - 1) {
activeSlideIndex = 0
}
} else if(direction === 'down') {
activeSlideIndex--
if(activeSlideIndex < 0) {
activeSlideIndex = slidesLength - 1
}
}