How to restart sliding animation in Easy Slider 1.7

空扰寡人 提交于 2019-12-01 10:41:00

问题


I've got a question about the jQuery Easy Slider 1.7 http://cssglobe.com/post/5780/easy-slider-17-numeric-navigation-jquery-slider with numeric navigation. When i use the slider with auto, continous set to true, the automatic sliding animation stops when I click on a number. Is there a way to make the animation after certain time delay? I tried adding

timeout = setTimeout(function(){
             animate("next",false);
          },options.pause);

to

if(clicked) clearTimeout(timeout);

making it:

if(clicked) {clearTimeout(timeout);timeout = setTimeout(function()animate("next",false);},options.pause);}

But then after the sliding stops on click, when it restarts it simple continues in a single sliding motion(all images slide), then come on a blank display. After some time the images comes normally and the sliding starts again from image 1 and continues normally.

来源:https://stackoverflow.com/questions/6978175/how-to-restart-sliding-animation-in-easy-slider-1-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!