最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - jssor slider, how to set duration for each slide on autoplay? - Stack Overflow

programmeradmin2浏览0评论

Does anyone know if you can set a duration interval for EACH SPECIFIC slide (Not transition) using jssor with $AutoPlay option set to TRUE?

I can now set all slide duration with $Idle=1000ms but I need to have for example:

SLIDE1: pause here for 2000ms
SLIDE2: pause here for 3000ms
...

Any Idea?

Does anyone know if you can set a duration interval for EACH SPECIFIC slide (Not transition) using jssor with $AutoPlay option set to TRUE?

I can now set all slide duration with $Idle=1000ms but I need to have for example:

SLIDE1: pause here for 2000ms
SLIDE2: pause here for 3000ms
...

Any Idea?

Share Improve this question edited Apr 30, 2017 at 21:24 jssor 6,9852 gold badges20 silver badges21 bronze badges asked Dec 3, 2014 at 19:31 Alessandro BottamediAlessandro Bottamedi 4835 silver badges15 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 5

I have just added this feature, please download the latest version.

Now you can set $Idle option,

and also, you can set idle time for each individual slide as follows,

<div u="slides" ...>
    <div><img data-u="image" src="image_url_1" /></div>
    <div data-idle="2000"><img data-u="image" src="image_url_2" /></div>
    <div data-idle="3000"><img data-u="image" src="image_url_3" /></div>
</div>

Edit The new option should be $Idle instead of $AutoPlayInterval. See http://www.jssor./development/reference-options.html

发布评论

评论列表(0)

  1. 暂无评论