轮播图动画问题

将animate函数绑定在#next按钮上:
next.onclick = function () {

           if (index == 5) {

                index = 1;

            }

            else {

                index += 1;

            }

            animate(-600);

            showButton();

        }

animate函数如下设计:
function animate(offset){

https://img.mukewang.com/5bc68f3d0001390207440280.jpg

 我的问题是:为什么点击按钮,图片无法动起来?



人到中年有点甜
浏览 645回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript