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