0

如何删除浏览器右侧的修复文本触发器?

我在谷歌搜索。有人告诉删除 scene.addIndicators() 但是当我删除时,滚动消失了。

这是截图

在此处输入图像描述

这是我的代码

                <script>
                    // define images
                    var images = [
                        "assets/img/img-aris/0001.png",
                        "assets/img/img-aris/0002.png",
                        "assets/img/img-aris/0003.png"
                                                ];

                    // TweenMax can tween any property of any object. We use this object to cycle through the array
                    var obj = {curImg: 0};

                    // create tween
                    var tween = TweenMax.to(obj, 1,
                        {
                            curImg: images.length - 1,  // animate propery curImg to number of images
                            roundProps: "curImg",               // only integers so it can be used as an array index
                            repeat: 0,                                  // repeat 3 times
                            immediateRender: true,          // load first image automatically
                            ease: Linear.easeNone,          // show every image the same ammount of time
                            onUpdate: function () {
                              $("#myimg").attr("src", images[obj.curImg]); // set the image source
                            }
                        }
                    );

                    // init controller
                    var controller = new ScrollMagic.Controller();

                    // build scene
                    var scene = new ScrollMagic.Scene({duration: 10000})
                                    .setTween(tween)
                                    .addIndicators() // add indicators (requires plugin)
                                    //.removeIndicators()
                                    .addTo(controller);

                </script>
4

0 回答 0