如圖用JS寫的一個動畫,設置了過度效果,就會出現這樣的情況,這中情況JS怎么更改?function moveSlide() {? var slides = $('.slide');??? // for (var i = 0; i < slides.length; i++) {? ? slides.forEach(function(item) {? ? ? var leftValue = parseInt(item.style.left);? ? ? if (leftValue == -100) {? ? ? ? leftValue = 100;? ? ? ? item.style.left = leftValue + '%';? ? ? }else if(leftValue == 100 || leftValue == 0){? ? ? ? leftValue -= 100;? ? ? ? item.style.left = leftValue + '%';? ? ? }? ? }, this);
CSS輪播切換動畫
慕妹3242003
2018-11-15 14:13:03