@@ -57,7 +57,10 @@ $('.style_house_sec02 .slider').on('beforeChange', function (event, slick, curre
for (i = 0; i < heightImgIndex.length; i++) {
console.log(heightImgIndex[i]);
if (nextSlide == heightImgIndex[i]) {
- allSlideImg[nextSlide].style.height = '500px';
+ allSlideImg[nextSlide].style.cssText = `
+ height: 500px;
+ margin: auto;
+ `;
} else {
allSlideImg[heightImgIndex[i]].style.height = '0px';
}