简体   繁体   中英

foundation orbit slider stop

i am using foundation 5.4.5 and have a page with four working orbits. I'm trying to stop them from sliding automatically when the page is run. I've tried to change the settings in the foundation.orbit.js file (timer= false and timer_speed=0) and also tried to use in my script js file what suggested by foundation and by the answers here:

$(document).foundation('orbit', {
timer: false,    
timer_speed: 0
});
$(document).foundation();

Is there a bug in this version or am i missing something?

thanks

Nevermind. Had a read through foundation forum and it seems to be a known issue. Orbit has been deprecated and probably won't be included in the next version so i moved to slick carousel as suggested on foundation's website. works great and takes 5 mins to implement

Using data-attributes is the preferred method of making changes to our Javascript

<ul data-orbit data-options="timer:false;">
      ...
</ul>

data-options="timer:false;" will stop your slider sliding automatically.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM